PyMOTW: functools

by Doug Hellmann

The functools module includes tools for wrapping functions and other callable objects.


Norbert Klamann
2008-04-29 03:14:14
Could you provide practical usage examples for this ?

Thanks a lot !


Ralph Corderoy
2008-04-30 04:20:11
I'd echo Norbert. These PyMOTW articles add little over the fine manual because there's often no practical usage given.
Doug Hellmann
2008-05-03 04:50:24
Norbert - One purpose of "fixing" the name and docstring is so when you generate documentation for a decorated function you see its information instead of the details for the decorator.