Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 41125:717bc2a4eee7 legacy-trunk
Backport from Py3k branch:
Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.
Had to change a few bits of the patch because classobjs and __methods__ are still
in Py2.6.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Mon, 12 Mar 2007 13:17:36 +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; }
