[Python-Dev] 2.4a2, and @decorators (original) (raw)

Guido van Rossum guido at python.org
Tue Aug 3 17:23:16 CEST 2004


Now, it's true that this will just become '@when("whatever")' in 2.4, and I'm fine with that, just disappointed that the syntax won't be forward compatible.

Implementability in 2.2 and 2.3 was never on the list of requirements for decorators. You're adding this constraint yourself. I know it was brought up before but I never agreed with that constraint (and the previous community favorite, [...]-after-args, wasn't compatible either).

I presume your framework is already full of hacks, which is fine by me, but I don't want to use it as a deciding factor for the decorator syntax.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-Dev mailing list