Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 28119:869695cba2cd legacy-trunk
- New function sys.exc_clear() clears the current exception. This is
rarely needed, but can sometimes be useful to release objects
referenced by the traceback held in sys.exc_info()[2]. (SF patch
#693195.) Thanks to Kevin Jacobs!
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 01 Mar 2003 03:20:41 +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; }
