Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 72835:5e33219492bc
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sun, 09 Oct 2011 10:38:36 +0200 |
| parents | 07d27d865e2c |
| children | 7109f31300fb |
line wrap: on
line diff
--- a/Python/ceval.c Sun Oct 09 08:58:16 2011 +0200 +++ b/Python/ceval.c Sun Oct 09 10:38:36 2011 +0200 @@ -372,6 +372,7 @@ void PyEval_ReInitThreads(void) { + _Py_identifier(_after_fork); PyObject *threading, *result; PyThreadState *tstate = PyThreadState_GET(); @@ -392,7 +393,7 @@ PyErr_Clear(); return; } - result = PyObject_CallMethod(threading, "_after_fork", NULL); + result = _PyObject_CallMethodId(threading, &PyId__after_fork, NULL); if (result == NULL) PyErr_WriteUnraisable(threading); else
