Issue225440
Created on 2000-12-12.05:45:11 by nickm, last changed 2000-12-12.21:19:47 by bckfnn.
History | |||
---|---|---|---|
Date | User | Action | Args |
2000-12-12 05:45:11 | nickm | create |
Created on 2000-12-12.05:45:11 by nickm, last changed 2000-12-12.21:19:47 by bckfnn.
Messages | |||
---|---|---|---|
msg221 (view) | Author: Nick Mathewson (nickm) | Date: 2000-12-12.05:45:11 | |
Although python2.0 introduces "as" as a keyword, it allows it to appear where it would ordinarily be acceptable, as in: def fn(as): as = as + 1; return as fn(as=3) class as: pass This feature allows for backward compatibility with code written for earlier versions of python. I actually have some such code Jython (as in CVS as of 12 Dec 2000) does not allow this. I believe that adding it would be as simple as replacing the declaration for Name in python.jjt to allow <AS> as an alternative for <NAME>, but I haven't tried this out myself, due to unfamiliarity with the codebase. |
|||
msg222 (view) | Author: Finn Bock (bckfnn) | Date: 2000-12-12.08:36:22 | |
The suggested solution should work. I'll check in the patch. |
|||
msg223 (view) | Author: Finn Bock (bckfnn) | Date: 2000-12-12.21:19:47 | |
Fixed in python.jjt revision: 2.12; |
History | |||
---|---|---|---|
Date | User | Action | Args |
2000-12-12 05:45:11 | nickm | create |
Supported by Python Software Foundation,
Powered by Roundup