Commit graph

4 commits

Author SHA1 Message Date
Victor Stinner
b7e1d51e6b
gh-148241: Fix json serialization for str subclasses (#148249)
Fix json serialization: no longer call str(obj) on str subclasses.

Replace PyUnicodeWriter_WriteStr() with PyUnicodeWriter_WriteASCII()
and private _PyUnicodeWriter_WriteStr().
2026-04-09 13:50:44 +02:00
AN Long
6393068bde
fix some typos (#138977) 2025-09-16 18:33:39 +05:30
Ethan Furman
a661f4531e Close #18745: Improve enum tests in test_json for infinities and NaN. 2013-09-02 01:14:56 -07:00
Ethan Furman
a4998a7041 Close #18264: int- and float-derived enums now converted to int or float. 2013-08-10 13:01:45 -07:00