Neal Becker wrote:
> 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?
>
>
Neal Becker wrote:
>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?
>
>
Decorator
Neal Becker wrote:
> 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?
It seem
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/p