[Python-bugs-list] [ python-Bugs-553262 ] [RefMan] Special status of "as"

noreply@sourceforge.net noreply@sourceforge.net
Sun, 12 May 2002 00:33:39 -0700


Bugs item #553262, was opened at 2002-05-07 08:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=553262&group_id=5470

Category: Documentation
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Fred L. Drake, Jr. (fdrake)
Assigned to: Fred L. Drake, Jr. (fdrake)
>Summary: [RefMan] Special status of "as"

Initial Comment:
The special status of "as" in import statements needs
to be acknowledged in the list of keywords (RefMan 2.3.1).

(Based on note sent to python-docs.)

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-12 02:33

Message:
Logged In: YES 
user_id=80475

Several important words like None are not listed as 
keywords.  In this case, there is no need because assigning 
to 'as' does not ambiguate the syntax:

>>> import sys as sass
>>> dir()
['__builtins__', '__doc__', '__name__', 'sass']
>>> as = 12
>>> import os as oz
>>> dir()
['__builtins__', '__doc__', '__name__', 'as', 'oz', 'sass']

Thanks for raising the issue.  I'm going to close this one 
because I think it's invalid.  If someone disagrees, feel 
free to resurrect it.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=553262&group_id=5470