Message188281
> One concern is we need to make sure the C implementation call > _Pickler_OpcodeBoundary often enough to keep the frames around the > sizes. For example, batch_save_list and batch_save_dict can currently > create a frame much larger than expected. I don't understand how that can happen. batch_list() and batch_dict() both call save() for each item, and save() calls _Pickler_OpcodeBoundary() at the end. Have I missed something? > Interestingly enough, I found pickle, with patch applied, crashes when > handling such frames: Interesting, I'll take a look when I have some time. > Also, I think we should try to make pickletools.dis display the frame > boundaries to help with debugging. This could be implemented by adding > an option to pickletools.genops which could be helpful for testing the > framing implementation as well. Agreed. | |
| Date | User | Action | Args | | 2013-05-02 21:16:18 | pitrou | set | recipients: + pitrou, rhettinger, alexandre.vassalotti, Arfrever, asvetlov, neologix, serhiy.storchaka | | 2013-05-02 21:16:17 | pitrou | link | issue17810 messages | | 2013-05-02 21:16:17 | pitrou | create | | |