Re: [Python-Dev] [Python-checkins] r84792 - in python/branches/py3k: Doc/library/reprlib.rst Lib/collections.py Lib/reprlib.py Lib/test/test_reprlib.py Misc/NEWS
13 Sep
2010
13 Sep
'10
11:50 p.m.
On Tue, Sep 14, 2010 at 7:36 AM, raymond.hettinger
+ # Can't use functools.wraps() here because of bootstrap issues + wrapper.__module__ = getattr(user_function, '__module__') + wrapper.__doc__ = getattr(user_function, '__doc__') + wrapper.__name__ = getattr(user_function, '__name__') + return wrapper
Perhaps add __wrapped__ as well? (I assume that, similar to _collections before it was made a builtin, the bootstrap issue is that _functools is an extension module rather than builtin, but reprlib is needed when building the extension modules?) Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
4971
Age (days ago)
4971
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nick Coghlan