• Nick Coghlan's avatar
    Issue #16129: Add `Py_SetStandardStreamEncoding` · 7d270ee0
    Nick Coghlan authored
    This new pre-initialization API allows embedding
    applications like Blender to force a particular
    encoding and error handler for the standard IO streams.
    
    Also refactors Modules/_testembed.c to let us start
    testing multiple embedding scenarios.
    
    (Initial patch by Bastien Montagne)
    7d270ee0
test_capi.py 15.6 KB