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 -- http://mail.python.org/mailman/listinfo/python-list