Message221
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.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:46 | admin | link | issue225440 messages |
2008-02-20 17:16:46 | admin | create | |
|