[issue3042] Add PEP 8 compliant aliases to threading module
Nick Coghlan
report at bugs.python.org
Mon Jun 9 08:35:50 CEST 2008
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I'd still be inclined to put a @wraps(meth) decorator on the definition
of the wrapper function (and then override to the supplied name
afterwards) - remember that functools.wraps is a decorator factory
rather than a decorator itself.
That would ensure that any docstrings and the like would be preserved
(granted, it appears the threading module currently doesn't *have* any
docstrings, but it would still be better to write the wrapping code
correctly).
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3042>
_______________________________________
More information about the Python-bugs-list
mailing list