On Tue, Sep 14, 2010 at 7:36 AM, raymond.hettinger <python-checkins at python.org> wrote: > + # 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 at gmail.com | Brisbane, Australia
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4