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 belopolsky
Recipients belopolsky, daniel.urban, eric.araujo, georg.brandl, lemburg, rhettinger, stribb, terry.reedy, thomaslee
Date 2010-12-01.20:07:22
SpamBayes Score 0.00011278513
Marked as misclassified No
Message-id <1291234046.23.0.834068923316.issue4113@psf.upfronthosting.co.za>
In-reply-to
Content
I simplified the partial_repr() code in issue4113b.diff and committed as r86916.

I wonder, however, if for the common case of func being a named function, displaying func.__name__ or func.__module__ + '.' + func.__name__ in repr(partial) may be more apropriate than repr(f).

For example, 

functools.partial(f, 1, 2, 3, a=5, b={}, c='7')

instead of

functools.partial(<function f at 0x100592d98>, 1, 2, 3, a=5, b={}, c='7')
History
Date User Action Args
2010-12-01 20:07:26belopolskysetrecipients: + belopolsky, lemburg, georg.brandl, rhettinger, terry.reedy, thomaslee, eric.araujo, stribb, daniel.urban
2010-12-01 20:07:26belopolskysetmessageid: <1291234046.23.0.834068923316.issue4113@psf.upfronthosting.co.za>
2010-12-01 20:07:22belopolskylinkissue4113 messages
2010-12-01 20:07:22belopolskycreate