Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31a4c22 commit bdb9d48Copy full SHA for bdb9d48
1 file changed
Mac/Tools/IDE/PyBrowser.py
@@ -402,6 +402,15 @@ def unpack_other(object, indent = 0):
402
attrs = attrs + object.__members__
403
if hasattr(object, '__methods__'):
404
attrs = attrs + object.__methods__
405
+ if hasattr(object, '__dict__'):
406
+ attrs = attrs + object.__dict__.keys()
407
+ if hasattr(object, '__slots__'):
408
+ # XXX??
409
+ attrs = attrs + object.__slots__
410
+ if hasattr(object, "__class__") and "__class__" not in attrs:
411
+ attrs.append("__class__")
412
+ if hasattr(object, "__doc__") and "__doc__" not in attrs:
413
+ attrs.append("__doc__")
414
items = []
415
for attr in attrs:
416
items.append((attr, getattr(object, attr)))
0 commit comments