Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 77917:b36bed82c9d0
Issue #15166: Re-implement imp.get_tag() using sys.implementation.
Also eliminates some C code in Python/import.c as well.
Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.
| author | Brett Cannon <brett@python.org> |
|---|---|
| date | Mon, 02 Jul 2012 15:13:11 -0400 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
