homepage

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 <1429298558.61.0.437384852088.issue23990@psf.upfronthosting.co.za>
In-reply-to
Content
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()
1
History
Date User Action Args
2015年04月17日 19:22:38ionelmcsetrecipients: + ionelmc
2015年04月17日 19:22:38ionelmcsetmessageid: <1429298558.61.0.437384852088.issue23990@psf.upfronthosting.co.za>
2015年04月17日 19:22:38ionelmclinkissue23990 messages
2015年04月17日 19:22:38ionelmccreate

AltStyle によって変換されたページ (->オリジナル) /