How can I write code to take advantage of new decorator syntax, while
allowing backward compatibility?

I almost want a preprocessor.

#if PYTHON_VERSION >= 2.4
@staticmethod
...


Since python < 2.4 will just choke on @staticmethod, how can I do this?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to