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.

Author ggenellina
Recipients ggenellina
Date 2009-01-14.05:31:34
SpamBayes Score 0.37797832
Marked as misclassified No
Message-id <1231911098.49.0.621266929609.issue4945@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-01-14 05:31:40ggenellinasetrecipients: + ggenellina
2009-01-14 05:31:38ggenellinasetmessageid: <1231911098.49.0.621266929609.issue4945@psf.upfronthosting.co.za>
2009-01-14 05:31:37ggenellinalinkissue4945 messages
2009-01-14 05:31:35ggenellinacreate