from __future__ import decorators
Peter Otten
__peter__ at web.de
Thu Jan 13 07:42:42 EST 2005
Jacek Generowicz wrote:
> I have some code, which makes copious use of the @decorator syntax
> which was introduced in Python2.4. Now I find myself in a situation
> where I have to run the code under Python 2.3. However, I would like
> to keep developing the code with the new syntax.
>
> How could I best automate the process of making the syntax digestible
> by Python2.3 ?
Have a look at Bill Mill's redecorate utility:
http://llimllib.f2o.org/files/redecorate.py
Peter
More information about the Python-list
mailing list