]> granicus.if.org Git - python/commitdiff
#2631: clarify IMPORT_NAME semantics.
authorGeorg Brandl <georg@python.org>
Sat, 19 Apr 2008 16:59:16 +0000 (16:59 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 19 Apr 2008 16:59:16 +0000 (16:59 +0000)
Doc/library/dis.rst

index d83ac3d98d5da96fd41f6bb3abdbe077b104b195..6d971f5a9f02d4cc63e0bb46e2834ac728851760 100644 (file)
@@ -630,9 +630,11 @@ the more significant byte last.
 
 .. opcode:: IMPORT_NAME (namei)
 
-   Imports the module ``co_names[namei]``.  The module 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.
+   Imports the module ``co_names[namei]``.  TOS and TOS1 are popped and provide
+   the *fromlist* and *level* arguments of :func:`__import__`.  The module
+   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)