python3-cookbook icon indicating copy to clipboard operation
python3-cookbook copied to clipboard

11.7节 在不同的解释器间进行通信,不能完成相应目的。

Open YuanyeMa opened this issue 6 years ago • 1 comments

YuanyeMa avatar Mar 15 '19 05:03 YuanyeMa

11.7节 使用multiprocessing.connection 包完成python2和python3进行通信的时候,python2端报错

ValueError: unsupported pickle protocol: 3

在python3端,通过protocol参数指定版本号,仍然无效。

x=pickle.dumps('aaa', protocol=2, fix_imports=True)
c.send(x)

请问该怎么解决,谢谢。

YuanyeMa avatar Mar 15 '19 05:03 YuanyeMa