Kaydet (Commit) 2fb8a536 authored tarafından Georg Brandl's avatar Georg Brandl

#2631: clarify IMPORT_NAME semantics.

üst f801b0f0
...@@ -630,9 +630,11 @@ the more significant byte last. ...@@ -630,9 +630,11 @@ the more significant byte last.
.. opcode:: IMPORT_NAME (namei) .. opcode:: IMPORT_NAME (namei)
Imports the module ``co_names[namei]``. The module object is pushed onto the Imports the module ``co_names[namei]``. TOS and TOS1 are popped and provide
stack. The current namespace is not affected: for a proper import statement, a the *fromlist* and *level* arguments of :func:`__import__`. The module
subsequent ``STORE_FAST`` instruction modifies the namespace. object is pushed onto the stack. The current namespace is not affected:
for a proper import statement, a subsequent ``STORE_FAST`` instruction
modifies the namespace.
.. opcode:: IMPORT_FROM (namei) .. opcode:: IMPORT_FROM (namei)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment