doctest and decorators

Ferenczi Viktor python at cx.hu
Tue Sep 4 17:16:08 EDT 2007


> @functools.wraps

Correctly:

@functools.wraps(f)

Pass the function to be wrapped by the decorator to the wraps function.

Regards, Viktor



More information about the Python-list mailing list