Pythonwin attribute expansion

Stefan Migowsky smigowsky at dspace.de
Thu Jul 20 08:24:44 EDT 2000


e.g.

try:
    items = items + dir(ob.__class__)
    for i in ob.__class__.__bases__:
        items = items + dir(i)
except AttributeError:
    pass

 Stefan

>-----Original Message-----
>From: Mark Hammond [mailto:MarkH at ActiveState.com]
>Sent: Thursday, July 20, 2000 12:15 PM
>To: python-list at python.org
>Subject: Re: Pythonwin attribute expansion
>
>
>Let me try this again...
>
>It's a bug.
>
>If you would like to fix it, look in pywin\scintilla\view.py, 
>and locate
>the _AutoComplete() method.  The line:
>
>     items = items + dir(ob.__class__)
>
>Is at fault - dir() doesnt search sub-classes.  Simply make this line
>smarter, by iterating over ob.__bases__
>
>Mark.
>
>
>
>-- 
>http://www.python.org/mailman/listinfo/python-list
>




More information about the Python-list mailing list