On 10/05/11 20:39, cool-RR wrote: > Ah, then my problem is easily solved by accessing `my_function.__module__` > before I change `__name__` back to its original value. I tested and it works.
by the way, what do you need it for? I think that, whatever you are doing, the best way is to explicitly assign func.__module__ to the value you want. ciao, Anto _______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev