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: [RefMan] Special status of "as"
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, rhettinger, tim.peters
Priority: normal Keywords:

Created on 2002-05-07 13:27 by fdrake, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (6)
msg10691 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-05-07 13:27
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.)
msg10692 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-12 07:33
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.
msg10693 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-05-12 07:45
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.
msg10694 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-13 06:33
Logged In: YES 
user_id=80475

My mistake :(
msg10695 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-05-13 06:39
Logged In: YES 
user_id=31435

That's OK. *I* still love you!  Not sure about Fred <wink>.
msg10696 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-06-18 19:19
Logged In: YES 
user_id=3066

Documention updated in Doc/ref/ref2.tex revisions 1.37,
1.34.6.2, and 1.23.4.1.
History
Date User Action Args
2022-04-10 16:05:18adminsetgithub: 36571
2002-05-07 13:27:23fdrakecreate