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 (2)
Priority: normal Keywords

Created on 2006-07-07 22:33 by scott.dial, last changed 2006-07-08 05:31 by nnorwitz.

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) Date: 2006-07-08 05:31
Logged In: YES 
user_id=33168

Committed revision 50489.
History
Date User Action Args
2006-07-07 22:33:15scott.dialcreate