You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 30a0b5f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Doc/library/dis.rst
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1349,10 +1349,22 @@ iterations of the loop.
1349
1349
1350
1350
.. opcode:: IMPORT_NAME (namei)
1351
1351
1352
-
Imports the module ``co_names[namei]``. ``STACK[-1]`` and ``STACK[-2]`` are
1353
-
popped and provide the *fromlist* and *level* arguments of :func:`__import__`.
1354
-
The module object is pushed onto the stack. The current namespace is not affected: for a proper import statement, a subsequent :opcode:`STORE_FAST` instruction
1355
-
modifies the namespace.
1352
+
Imports the module ``co_names[namei >> 2]``. ``STACK[-1]`` and
1353
+
``STACK[-2]`` supply the *fromlist* and *level* arguments of the import.
1354
+
The instruction removes both values from the stack.
0 commit comments