mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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.
This commit is contained in:
parent
1d75a79c00
commit
5215225ea1
12 changed files with 970 additions and 818 deletions
|
@ -195,7 +195,7 @@ def_op('BREAK_LOOP', 80)
|
|||
|
||||
def_op('LOAD_LOCALS', 82)
|
||||
def_op('RETURN_VALUE', 83)
|
||||
|
||||
def_op('IMPORT_STAR', 84)
|
||||
def_op('EXEC_STMT', 85)
|
||||
|
||||
def_op('POP_BLOCK', 87)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue