[issue3445] functools.update_wrapper bug

2008-07-27 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The problem actually has to do with trying to use update_wrapper on a method instead of a function - bound and unbound methods don't have all the same attributes that actual functions do. >>> import functools >>> functools.WRAPPER_ASSIGNMENTS (

[issue3445] functools.update_wrapper bug

2008-07-27 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think what you want is functools.update_wrapper(myWrapper, str.split, ('__name__', '__doc__')) -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]>

[issue3445] functools.update_wrapper bug

2008-07-27 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- assignee: -> ncoghlan nosy: +ncoghlan ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Py

[issue3445] functools.update_wrapper bug

2008-07-25 Thread Antoine d'Otreppe
New submission from Antoine d'Otreppe <[EMAIL PROTECTED]>: When trying to do something like "functools.update_wrapper(myWrapper, str.split)" I got this error message: Traceback (most recent call last): File "", line 1, in File "Aspyct.py", line 175, in beforeCall _stickAdvice(function,