Evan Klitzke e...@eklitzke.org 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
Evan Klitzke e...@eklitzke.org 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):
return func