[pywin32-bugs] [ pywin32-Bugs-1081112 ] impossible to type the following
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: SourceForge.net <no...@so...> - 2005-03-05 04:15:18
|
Bugs item #1081112, was opened at 2004-12-08 16:29 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1081112&group_id=78018 Category: pythonwin Group: None >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Bryan (belred) Assigned to: Nobody/Anonymous (nobody) Summary: impossible to type the following Initial Comment: the following is impossible to type with auto-complete enabled for build 203, python 2.4. >>> class Foo(object): ... def x(self): pass ... def __getattribute__(self, name): ... print name ... raise AttributeError ... >>> f = Foo() >>> f.x when the dot is typed in the previous line you get the following, so it's impossible to type the x after the dot. >>> f.__dict__ __members__ __methods__ __class__ __class__ __class__ f. bryan ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-03-05 15:15 Message: Logged In: YES user_id=14198 The problem is the print statement in your code. Pythonwin asks your objects for attributes, and your code prints the attribute name as it is requested. There is nothing Pythonwin could do in this case. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1081112&group_id=78018 |