[issue3445] Ignore missing attributes in functools.update_wrapper

2010-01-15 Thread Evan Klitzke
Evan Klitzke added the comment: New patch included, with a test case. I had wanted to check the classmethod __module__ thing directly, but that proved to be elusive, since the classmethod gets the __module__ attribute if the module is '__main__', and you can't delete that att

[issue3445] Ignore missing attributes in functools.update_wrapper

2010-01-13 Thread Evan Klitzke
Evan Klitzke added the comment: I'm also interested in seeing this fixed. In the current behavior, the following code doesn't work: <<< start code from functools import wraps def magic(func): @wraps(func) def even_more_magic(*args):