summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-08-19 20:55:02 (GMT)
committerThomas Wouters <thomas@python.org>2000-08-19 20:55:02 (GMT)
commit8bad61288186aab93b8aaf6b229c07211e1c77d7 (patch)
tree2c03c8261f7a1b91c433f20245638154b0629879 /Lib/test
parent15446d344d2bda98bf8fd7d0244081a9d4bb7c8f (diff)
downloadcpython-8bad61288186aab93b8aaf6b229c07211e1c77d7.zip
cpython-8bad61288186aab93b8aaf6b229c07211e1c77d7.tar.gz
cpython-8bad61288186aab93b8aaf6b229c07211e1c77d7.tar.bz2
Disallow "import mod.submod as m", because the result is ambiguous. Does it
load mod.submod as m, or mod as m ? Both can be achieved differently, and unambiguously. Also attempt to document this restriction (editor appreciated!) Note that this is an artificial check during compile, because incorporating this in the grammar is hard, and then adjusting the compiler to do the right thing with the right nodes is harder.
Diffstat (limited to 'Lib/test')
0 files changed, 0 insertions, 0 deletions