Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 47611:da47e7e135ae
#2630: Implement PEP 3138.
The repr() of a string now contains printable Unicode characters unescaped.
The new ascii() builtin can be used to get a repr() with only ASCII characters in it.
PEP and patch were written by Atsuo Ishimoto.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Wed, 11 Jun 2008 18:37:52 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
