classification
Title: pickletools.OpcodeInfo.code is a string
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.3, Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BTaskaya, alexandre.vassalotti, pitrou, serhiy.storchaka
Priority: normal Keywords:

Created on 2013-12-02 22:43 by pitrou, last changed 2019-08-24 11:44 by BTaskaya.

Messages (3)
msg205061 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-12-02 22:43
It should probably be a bytes object instead:

>>> op
<pickletools.OpcodeInfo object at 0x7f1e119db448>
>>> op.code
'\x95'
>>> op.name
'FRAME'
>>> pickle.FRAME
b'\x95'
msg231362 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2014-11-19 08:59
But isn't it is backward incompatible change?
msg350370 - (view) Author: Batuhan Taskaya (BTaskaya) * (Python committer) Date: 2019-08-24 11:44
What should we do then, close?
History
Date User Action Args
2019-08-24 11:44:27BTaskayasetnosy: + BTaskaya
messages: + msg350370
2014-11-19 08:59:40serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg231362
2013-12-02 22:43:57pitroucreate