This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Antoine d'Otreppe
Recipients Antoine d'Otreppe
Date 2008-07-25.15:26:28
SpamBayes Score 0.03850431
Marked as misclassified No
Message-id <1216999615.48.0.706294847693.issue3445@psf.upfronthosting.co.za>
In-reply-to
Content
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__'
History
Date User Action Args
2008-07-25 15:26:55Antoine d'Otreppesetspambayes_score: 0.0385043 -> 0.03850431
recipients: + Antoine d'Otreppe
2008-07-25 15:26:55Antoine d'Otreppesetspambayes_score: 0.0385043 -> 0.0385043
messageid: <1216999615.48.0.706294847693.issue3445@psf.upfronthosting.co.za>
2008-07-25 15:26:30Antoine d'Otreppelinkissue3445 messages
2008-07-25 15:26:28Antoine d'Otreppecreate