From: <no...@so...> - 2000-12-12 05:45:12
|
Bug #125440, was updated on 2000-Dec-11 21:45 Here is a current snapshot of the bug. Project: Jython Category: Core Status: Open Resolution: None Bug Group: None Priority: 5 Submitted by: nickm Assigned to : nobody Summary: Minor nit: "as" not recognised as valid function argument Details: 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. For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=125440&group_id=12867 |