Re: [PyCrust] Attribute list hook
Brought to you by:
pobrien
|
From: Neil H. <ne...@sc...> - 2001-08-12 00:34:45
|
> PyCrust can be changed to use this with the getAttributes method in
> PyCrustInterp.py changed to:
PythonWin can have this as well by changing
Pythonwin\pywin\scintilla\view.py in the CScintillaView _AutoComplete
method:
if hasattr(ob, "__class__"):
items = items + _get_class_attributes(ob.__class__)
try:
items = items + ob.getAttributeNames()
except AttributeError:
pass
One useful thing that PythonWin does is to filter out the attributes that
start with "_" with
items = filter(lambda word: word[0]!='_', items)
as these are private. Could be an option.
Neil
|