This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: import_as_name and dotted_as_name fail to validate syntax
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nnorwitz, scott.dial
Priority: normal Keywords:

Created on 2006-07-07 22:33 by scott.dial, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg29093 - (view) Author: Scott Dial (scott.dial) Date: 2006-07-07 22:33
The following import statements are invalidly accepted
by the current HEAD:

"import sys foo bar"
"from sys import path foo bar"

The current trunk excepts this input and merely ignores
"foo" failing to validate that the string is "as". I am
not familiar enough with Python's syntax checking to
locate it and submit a patch.
msg29094 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-07-08 05:31
Logged In: YES 
user_id=33168

Committed revision 50489.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43634
2006-07-07 22:33:15scott.dialcreate