This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 serhiy.storchaka
收信人 alexandre.vassalotti, pitrou, python-dev, rhettinger, serhiy.storchaka
日期 2014-11-02.14:56:23
SpamBayes Score -1.0
Marked as misclassified
Message-id <1414940184.84.0.0387336483857.issue17900@psf.upfronthosting.co.za>
In-reply-to
内容
Oh, sorry, I did not notice test_yaml_linkage. And in any case this test was broken (should be rv[1][0] instead of rv[1]).

I don't like to revert these changes, and the reversion can break a code written for 3.4 which pickles recursive OrderedDicts. I suggest following solution. PyYAML calls __reduce_ex_(2) or __reduce__(). Therefore we can return to old behavior with protocol < 3 and left current behavior with protocol >= 3. Recursive OrderedDicts will be pickleable with default protocol and with highest protocol, and PyYAML will be happy.

Does this patch look good to your?
历史
日期 用户 动作 参数
2014-11-02 14:56:24serhiy.storchaka修改recipients: + serhiy.storchaka, rhettinger, pitrou, alexandre.vassalotti, python-dev
2014-11-02 14:56:24serhiy.storchaka修改messageid: <1414940184.84.0.0387336483857.issue17900@psf.upfronthosting.co.za>
2014-11-02 14:56:24serhiy.storchaka链接issue17900 messages
2014-11-02 14:56:24serhiy.storchaka创建