[Python-Dev] Re: decorators and 2.4 (original) (raw)
Jewett, Jim J jim.jewett at eds.com
Mon Jul 12 16:49:40 CEST 2004
- Previous message: [Python-Dev] decimal.py signals & traps
- Next message: [Python-Dev] test__locale failing on MacOS X
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] decimal.py signals & traps
- Next message: [Python-Dev] test__locale failing on MacOS X
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]