8 ms·
If you change this you break a common optimization: https://github.com/python/cpython/blob/3.14/Lib/json/encoder.py#L267 https://github.com/python/cpython/blob
by exyi 6mo ago
If you change this you break a common optimization:
https://github.com/python/cpython/blob/3.14/Lib/json/encoder.py#L267 https://github.com/python/cpython/blob/3.14/Lib/json/encoder...
Default value is evaluated once, and accessing parameter is much cheaper than global