win32all-142 available (Long)
Jason Orendorff
jason at jorendorff.com
Sat Jan 5 18:10:12 EST 2002
#------------------------------------------------------
> # NEW CODE BEGIN
> #------------------------------------------------------
> if hasattr(ob, "__class__"):
> allitems = []
> allitems.extend(_get_class_attributes(ob.__class__))
> for item in allitems:
> if not item in items:
> items = items + item
I think you probably mean this.
if hasattr(ob, "__class__"):
for item in _get_class_attributes(ob.__class__):
if item not in items:
items.append(item)
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list