This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti
Date 2015-11-09.22:15:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Pressing <tab> to invoke autocompletition on instances repeatedly accesses attributes/descriptors values:

>>> # <tab> is used to indicate when/where I press <tab>
>>> class Foo:
...   @property
...   def bar(self): print(' called')
>>> f = Foo()
>>> f.<tab> called called called called
<tab> called called called called
f.__class__(         f.__doc__            f.__getattribute__(  f.__le__(            f.__new__(           f.__setattr__(       f.__weakref__
f.__delattr__(       f.__eq__(            f.__gt__(            f.__lt__(            f.__reduce__(        f.__sizeof__(
f.__dict__           f.__format__(        f.__hash__(          f.__module__         f.__reduce_ex__(     f.__str__(           
f.__dir__(           f.__ge__(            f.__init__(          f.__ne__(            f.__repr__(          f.__subclasshook__(  
>>> f.b<tab> called called called called
ar<enter> called

Each time I press <tab>, the property is called 4 times.  I'm not sure why the value is accessed at all, but even if there was a valid reason to do so, doing it once should be enough.
Date User Action Args
2015-11-09 22:15:43ezio.melottisetrecipients: + ezio.melotti
2015-11-09 22:15:43ezio.melottisetmessageid: <>
2015-11-09 22:15:43ezio.melottilinkissue25590 messages
2015-11-09 22:15:42ezio.melotticreate