Message79832
json compares arguments against True/False by identity, not by boolean
value; by example:
if (skipkeys is False and ensure_ascii is True and
check_circular is True and allow_nan is True ...
Using `ensure_ascii=1` won't work as intended. I don't see the reason
to check those values by identity - they *are* boolean flags, and
should be checked by value, as the usual practice.
The attached patch fixes the code and documentation (and a bug encoding
True/False as keys, including unit tests) |
|
Date |
User |
Action |
Args |
2009-01-14 05:31:40 | ggenellina | set | recipients:
+ ggenellina |
2009-01-14 05:31:38 | ggenellina | set | messageid: <1231911098.49.0.621266929609.issue4945@psf.upfronthosting.co.za> |
2009-01-14 05:31:37 | ggenellina | link | issue4945 messages |
2009-01-14 05:31:35 | ggenellina | create | |
|