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 july
Recipients Antoine d'Otreppe, benjamin.peterson, brian.curtin, eklitzke, findepi, freakboy3742, july, ncoghlan, pitrou, yaubi
Date 2010-05-02.14:06:32
SpamBayes Score 0.029130332
Marked as misclassified No
Message-id <1272809197.28.0.194677973953.issue3445@psf.upfronthosting.co.za>
In-reply-to
Content
Patch updated: bound and unbound methods, user-defined callable, partial object included in test.

By the way,

>>> [id(abs.__doc__) for i in range(5)]
[140714383081744, 140714383081744, 140714383081744, 140714383081744, 140714383081744]
>>> [id(s) for s in [abs.__doc__ for i in range(5)]]
[140714383084040, 140714383082976, 140714383083144, 140714383075904, 140714383081744]

How it can be explained? Built-in functions (and methods) _sometimes_ return a new instance of its '__doc__' (and '__name__'), and sometimes does not.
(I found this trying to include built-in method into the test.)
History
Date User Action Args
2010-05-02 14:06:37julysetrecipients: + july, ncoghlan, pitrou, benjamin.peterson, Antoine d'Otreppe, findepi, brian.curtin, eklitzke, yaubi, freakboy3742
2010-05-02 14:06:37julysetmessageid: <1272809197.28.0.194677973953.issue3445@psf.upfronthosting.co.za>
2010-05-02 14:06:34julylinkissue3445 messages
2010-05-02 14:06:33julycreate