[New-bugs-announce] [issue19867] pickletools.OpcodeInfo.code is a string

Antoine Pitrou report at bugs.python.org
Mon Dec 2 23:43:57 CET 2013


New submission from Antoine Pitrou:

It should probably be a bytes object instead:

>>> op
<pickletools.OpcodeInfo object at 0x7f1e119db448>
>>> op.code
'\x95'
>>> op.name
'FRAME'
>>> pickle.FRAME
b'\x95'

----------
components: Library (Lib)
messages: 205061
nosy: alexandre.vassalotti, pitrou
priority: normal
severity: normal
status: open
title: pickletools.OpcodeInfo.code is a string
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19867>
_______________________________________


More information about the New-bugs-announce mailing list