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

noreply@sourceforge.net noreply@sourceforge.net
Sun, 12 May 2002 00:45:09 -0700


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

Category: Documentation
Group: None
>Status: Open
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: Tim Peters (tim_one)
Date: 2002-05-12 03:45

Message:
Logged In: YES 
user_id=31435

Reopened.  When an active developer opens a bug and assigns 
it to themself (Fred opened this and assigned it to 
himself), they have a reason that shouldn't be second-
guessed without discussion (in this case, "as" is not a 
builtin name, and it is special in one context -- Fred 
wants a reminder here to change the docs accordingly).

Unfortunately, once the Resolution field on an SF report is 
set to anything other than "None", it can't be changed back 
to None again.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-05-12 03: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