functools.wraps is not available in python 2.4.Is there any other module which can be used instead of this in python 2.4?
functools.wraps is not available in python 2.4.Is there any other module which can be
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can copy the functools code from Python2.5 and have it work in Python2.4 with only minor changes (substitute a lambda for the partial): http://hg.python.org/cpython/file/b48e1b48e670/Lib/functools.py#l15
Here’s a simple replacement for partial: