diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-08-21 21:10:31 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-08-21 21:10:31 -0400 |
commit | 9b75a095ea1b53a609aee5162914821b06e0008e (patch) | |
tree | 83d017cb275668996e13e878f94f338e7f89f389 /Python/Python-ast.c | |
parent | ac38ecdbb2b5663a98044c53998baebf02673597 (diff) | |
download | cpython-9b75a095ea1b53a609aee5162914821b06e0008e.tar.gz |
#18324: set_payload now correctly handles binary input.
This also backs out the previous fixes for for #14360, #1717, and #16564.
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent. This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent. Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.
Tests by Vajrasky Kok.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions