[Python-Dev] Re: decorators and 2.4
Jewett, Jim J
jim.jewett at eds.com
Mon Jul 12 16:49:40 CEST 2004
Martin Zarate:
> So, a solution, mixing them all so that it becomes more than
> a simple list declaration:
> as [descriptors]
> def blah blah blah:
If you start a production with "as", then suddenly it matters more
what the line before was/whether that line had a continuation character.
For instance, the following becomes syntactically valid, though I doubt
it means what the user expects.
import time \
as logged_func
def ...
This objection does not apply to either
[descriptors] as
or
@[descriptors]
though the @[] format might still be in use by some user code.
-jJ
More information about the Python-Dev
mailing list