mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
This commit is contained in:
parent
67df285a33
commit
afe55bba33
50 changed files with 578 additions and 240 deletions
|
@ -535,11 +535,12 @@ time_strptime(PyObject *self, PyObject *args)
|
|||
{
|
||||
PyObject *strptime_module = PyImport_ImportModuleNoBlock("_strptime");
|
||||
PyObject *strptime_result;
|
||||
_Py_identifier(_strptime_time);
|
||||
|
||||
if (!strptime_module)
|
||||
return NULL;
|
||||
strptime_result = PyObject_CallMethod(strptime_module,
|
||||
"_strptime_time", "O", args);
|
||||
strptime_result = _PyObject_CallMethodId(strptime_module,
|
||||
&PyId__strptime_time, "O", args);
|
||||
Py_DECREF(strptime_module);
|
||||
return strptime_result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue