[New-bugs-announce] [issue3445] functools.update_wrapper bug
Antoine d'Otreppe
report at bugs.python.org
Fri Jul 25 17:26:55 CEST 2008
New submission from Antoine d'Otreppe <a.dotreppe at gmail.com>:
When trying to do something like
"functools.update_wrapper(myWrapper, str.split)"
I got this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "Aspyct.py", line 175, in beforeCall
_stickAdvice(function, theAdvice)
File "Aspyct.py", line 90, in _stickAdvice
functools.update_wrapper(theAdvice, function)
File "/usr/lib/python2.5/functools.py", line 33, in update_wrapper
setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'method_descriptor' object has no attribute '__module__'
----------
components: Library (Lib)
messages: 70256
nosy: Antoine d'Otreppe
severity: normal
status: open
title: functools.update_wrapper bug
type: behavior
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3445>
_______________________________________
More information about the New-bugs-announce
mailing list