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().
V
Victor Stinner committed
b7e1d51e6b0764dd51e97c2b539e9633028afb2d
Parent: 8000a9d
Committed by GitHub <noreply@github.com>
on 4/9/2026, 11:50:44 AM