]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Apply SF patch #101135, adding 'import module as m' and 'from module import
authorThomas Wouters <thomas@python.org>
Thu, 17 Aug 2000 22:55:00 +0000 (22:55 +0000)
committerThomas Wouters <thomas@python.org>
Thu, 17 Aug 2000 22:55:00 +0000 (22:55 +0000)
commit5215225ea1e3200b572775639d567f5e3f489a15
tree8202d4aebf513dc8c8a80adf018f13270386e658
parent1d75a79c009e500923128716a02efbe86135e64e
Apply SF patch #101135, adding 'import module as m' and 'from module import
name as n'. By doing some twists and turns, "as" is not a reserved word.

There is a slight change in semantics for 'from module import name' (it will
now honour the 'global' keyword) but only in cases that are explicitly
undocumented.
12 files changed:
Doc/lib/libdis.tex
Doc/ref/ref6.tex
Grammar/Grammar
Include/graminit.h
Include/opcode.h
Lib/dis.py
Lib/test/output/test_pkg
Lib/test/test_pkg.py
Python/ceval.c
Python/compile.c
Python/graminit.c
Python/import.c