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 e49b99c
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
@@ -1362,10 +1362,22 @@ iterations of the loop.
1362
1362
1363
1363
.. opcode:: IMPORT_NAME (namei)
1364
1364
1365
-
Imports the module ``co_names[namei]``. ``STACK[-1]`` and ``STACK[-2]`` are
1366
-
popped and provide the *fromlist* and *level* arguments of :func:`__import__`.
1367
-
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
1368
-
modifies the namespace.
1365
+
Imports the module ``co_names[namei >> 2]``. ``STACK[-1]`` and
1366
+
``STACK[-2]`` supply the *fromlist* and *level* arguments of the import.
1367
+
The instruction removes both values from the stack.
0 commit comments