from __future__ import decorators

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

Jacek Generowicz <jacek.generowicz at> 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:


More information about the Python-list mailing list