summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2001-12-31 08:57:57 (GMT)
committerJust van Rossum <just@letterror.com>2001-12-31 08:57:57 (GMT)
commitbdb9d487b2a905edccf425ad04d56835a6ccd38d (patch)
treec082bc2b39e5ecf6c09c236d16e1b704710a6867 /Mac/Tools
parent31a4c22cee35c94f74a643953c03a408f13e26f5 (diff)
downloadcpython-bdb9d487b2a905edccf425ad04d56835a6ccd38d.zip
cpython-bdb9d487b2a905edccf425ad04d56835a6ccd38d.tar.gz
cpython-bdb9d487b2a905edccf425ad04d56835a6ccd38d.tar.bz2
half-hearted stab at supported the 2.2 object model better.
Diffstat (limited to 'Mac/Tools')
-rw-r--r--Mac/Tools/IDE/PyBrowser.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PyBrowser.py b/Mac/Tools/IDE/PyBrowser.py
index 67831c0..74849df 100644
--- a/Mac/Tools/IDE/PyBrowser.py
+++ b/Mac/Tools/IDE/PyBrowser.py
@@ -402,6 +402,15 @@ def unpack_other(object, indent = 0):
attrs = attrs + object.__members__
if hasattr(object, '__methods__'):
attrs = attrs + object.__methods__
+ if hasattr(object, '__dict__'):
+ attrs = attrs + object.__dict__.keys()
+ if hasattr(object, '__slots__'):
+ # XXX??
+ attrs = attrs + object.__slots__
+ if hasattr(object, "__class__") and "__class__" not in attrs:
+ attrs.append("__class__")
+ if hasattr(object, "__doc__") and "__doc__" not in attrs:
+ attrs.append("__doc__")
items = []
for attr in attrs:
items.append((attr, getattr(object, attr)))