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 ionelmc
Recipients ionelmc
Date 2015-04-17.19:22:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
For context this respects the descriptor protocol:

>>> a()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 4, in __call__
AttributeError: go away

Mind you, this is legal use:

>>> class B:
...  @property
...  def __call__(self):
...   return lambda: 1
>>> b = B()
>>> b()
Date User Action Args
2015-04-17 19:22:38ionelmcsetrecipients: + ionelmc
2015-04-17 19:22:38ionelmcsetmessageid: <>
2015-04-17 19:22:38ionelmclinkissue23990 messages
2015-04-17 19:22:38ionelmccreate