Comment Comment by exyi If you change this you break a common optimization:https://github.com/python/cpython/blob/3.14/Lib/json/encoder...Default value is evaluated once, and accessing parameter is much cheaper than global parent exyi 7 months ago
https://github.com/python/cpython/blob/3.14/Lib/json/encoder...
Default value is evaluated once, and accessing parameter is much cheaper than global