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
Update pickle opcode documentation in pickletools for 3.x #53513
Pickle opcode documentation in pickletools still refers to old/new style classes and changes made in 2.x series. Opcodes such as INT, INST, and OBJ that are no longer produced by 3.x pickling code should be described as such and discussion added on how 2.x features that are removed in 3.x are emulated when 2.x pickles are loaded in 3.x.
Just a reminder to myself based on Mark's suggestion on IRC. In TUPLE<N> opcode documentation two-tuple and three-tuple are redundant in summary line. Can be replaced with just tuple without loss of clarity. See r82915.
Sasha: What's the current status of pickling float inf, nan, -0.0, etc.?
Mark: In py3k and release27-maint, there shouldn't be any issues with any of those. Same with release31-maint. In release26-maint, pickling infinities and nans on windows using protocol 0 is problematic.
@serhiy-storchaka@abalkin I think we can close the issue. The pickletools documentation currently does not refer to old style classes or changes to the 2.x series.
Activity
abalkin commentedon Jul 15, 2010
Pickle opcode documentation in pickletools still refers to old/new style classes and changes made in 2.x series. Opcodes such as INT, INST, and OBJ that are no longer produced by 3.x pickling code should be described as such and discussion added on how 2.x features that are removed in 3.x are emulated when 2.x pickles are loaded in 3.x.
See also bpo-5180.
abalkin commentedon Jul 16, 2010
Just a reminder to myself based on Mark's suggestion on IRC. In TUPLE<N> opcode documentation two-tuple and three-tuple are redundant in summary line. Can be replaced with just tuple without loss of clarity. See r82915.
abalkin commentedon Jul 16, 2010
From IRC:
Sasha: What's the current status of pickling float inf, nan, -0.0, etc.?
Mark: In py3k and release27-maint, there shouldn't be any issues with any of those. Same with release31-maint. In release26-maint, pickling infinities and nans on windows using protocol 0 is problematic.
serhiy-storchaka commentedon Jan 4, 2013
See also bpo-16550.
Windsooon commentedon May 14, 2019
Where are the documents actually?
gforcada commentedon Jun 16, 2019
pickletools documentation is here:
https://docs.python.org/3/library/pickletools.html#module-pickletools
Sources are here:
https://github.com/python/cpython/blob/master/Doc/library/pickletools.rst
furkanonder commentedon Feb 1, 2023
@serhiy-storchaka @abalkin I think we can close the issue. The pickletools documentation currently does not refer to old style classes or changes to the 2.x series.