summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-13 21:12:32 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-13 21:12:32 +0300
commit5805ddeedb5624aa6677f5e03e6f505c9920495f (patch)
treee124914965aa30261d753508b10056fbbc7c6141
parent83fd0a81a4afff60339b0ead31c3b8317b29fd55 (diff)
downloadcpython-git-5805ddeedb5624aa6677f5e03e6f505c9920495f.tar.gz
Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in
pickletools.opcodes.
-rw-r--r--Lib/pickletools.py2
-rw-r--r--Misc/NEWS3
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 6b86723a4c..cf5df4158a 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -1898,7 +1898,7 @@ opcodes = [
arg=None,
stack_before=[pyunicode, pyunicode],
stack_after=[anyobject],
- proto=0,
+ proto=4,
doc="""Push a global object (module.attr) on the stack.
"""),
diff --git a/Misc/NEWS b/Misc/NEWS
index b5a70e5640..23b6ebcc2a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -96,6 +96,9 @@ Core and Builtins
Library
-------
+- Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in
+ pickletools.opcodes.
+
- Issue #23972: Updates asyncio datagram create method allowing reuseport
and reuseaddr socket options to be set prior to binding the socket.
Mirroring the existing asyncio create_server method the reuseaddr option