Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 6136:57045f51dd12 legacy-trunk
Added new Py_IsInitalized() API function to test the 'initialized' flag.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 22 Aug 1997 04:20:13 +0000 |
| parents | 98a282cfb013 |
| children | 29ddf1049842 |
line wrap: on
line diff
--- a/Python/pythonrun.c Thu Aug 21 22:36:26 1997 +0000 +++ b/Python/pythonrun.c Fri Aug 22 04:20:13 1997 +0000 @@ -78,6 +78,14 @@ static int initialized = 0; +/* API to access the initialized flag -- useful for eroteric use */ + +int +Py_IsInitialized() +{ + return initialized; +} + /* Global initializations. Can be undone by Py_Finalize(). Don't call this twice without an intervening Py_Finalize() call. When initializations fail, a fatal error is issued and the function does
