• Nick Coghlan's avatar
    Issue #16129: Add `Py_SetStandardStreamEncoding` · 851a45c2
    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)
    851a45c2
test_capi.py 15.6 KB