summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-10-13 18:14:01 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-10-13 18:14:01 (GMT)
commitca77aef31b16c637efd3fdaacaf25123f71e848f (patch)
treeadfc3933ecdde216d71a3655fea8c394d5ce4584
parenteaaaf136d20e1dd5160c2083fb81313d0818ea5d (diff)
parent5a8bbc5f2a91966839488de6bd02fe783e6c7f2b (diff)
downloadcpython-ca77aef31b16c637efd3fdaacaf25123f71e848f.zip
cpython-ca77aef31b16c637efd3fdaacaf25123f71e848f.tar.gz
cpython-ca77aef31b16c637efd3fdaacaf25123f71e848f.tar.bz2
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 6b86723..cf5df41 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 742d26f..142360e 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -73,6 +73,9 @@ Library
- Issue #25316: distutils raises OSError instead of DistutilsPlatformError
when MSVC is not installed.
+- 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