Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 86399:9cd88b39ef62
Issue #16129: Add `Py_SetStandardStreamEncoding`
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)
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Thu, 17 Oct 2013 22:35:35 +1000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
