from __future__ import decorators

Thomas Heller theller at python.net
Thu Jan 13 05:54:08 EST 2005


Jacek Generowicz <jacek.generowicz at cern.ch> writes:

> 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 ?

The only way that I know of is this, although you have to rewrite your
code somewhat:

http://dirtsimple.org/2004/11/using-24-decorators-with-22-and-23.html

Thomas




More information about the Python-list mailing list