Pythonwin attribute expansion
Howard B. Golden
hgolden at my-deja.com
Thu Jul 20 12:35:44 EDT 2000
Stefan, your code works great! Thanks!
(Mark, thank you, too! I will e-mail the modified module to you.)
<open-source-advocacy>
Note this timeline for problem resolution:
- Problem found/message on c.l.p: 2000 July 20 0000 GMT (California)
- Solution suggested: 2000 July 20 0215 GMT (Australia)
- Solution coded: 2000 July 20 ???? GMT (Germany)
- Solution accepted: 2000 July 20 1600 GMT (California)
(Stefan, I didn't have a message time for your reply. Could you supply
it?)
</open-source-advocacy>
Stefan Migowsky <smigowsky at dspace.de> wrote:
> try:
> items = items + dir(ob.__class__)
> for i in ob.__class__.__bases__:
> items = items + dir(i)
> except AttributeError:
> pass
> >-----Original Message-----
> >From: Mark Hammond [mailto:MarkH at ActiveState.com]
> >Let me try this again...
> >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__
--
Howard B. Golden
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list