[Python-Dev] Re: @decorators, the PEP and the "options" out there?
exarkun at divmod.com
Fri Aug 6 00:07:25 CEST 2004
Martin v. L=F6wis wrote:
> Nicolas Fleury wrote:
>> Other crazy ideas (in case it inspires anyone):
>> def bar(low,high):
> That doesn't work. If accepts and returns are callables
> (as they should be), then this already means something
> in current Python. So this would not be backwards
Adding _any_ names to Python has this potential problem. I don't =
think that's going to stop anyone from adding new modules to the =
standard library or new builtins (2.4 introduces 3 new builtins).
To say this isn't backwards compatible is true, but not in a sense =
that strikes me as important. "accepts" and "returns" don't even need =
to be builtins, they could be placed in a module with a handful of other =
useful common decorators.
More information about the Python-Dev