Message123006
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') |
|
Date |
User |
Action |
Args |
2010-12-01 20:07:26 | belopolsky | set | recipients:
+ belopolsky, lemburg, georg.brandl, rhettinger, terry.reedy, thomaslee, eric.araujo, stribb, daniel.urban |
2010-12-01 20:07:26 | belopolsky | set | messageid: <1291234046.23.0.834068923316.issue4113@psf.upfronthosting.co.za> |
2010-12-01 20:07:22 | belopolsky | link | issue4113 messages |
2010-12-01 20:07:22 | belopolsky | create | |
|