mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Part of SF patch #1513870 (the still relevant part) -- add reduce() to
functools, and adjust docs etc.
This commit is contained in:
parent
6a2a2a0832
commit
0919a1a07b
11 changed files with 168 additions and 78 deletions
|
@ -3012,7 +3012,7 @@ init_ast(void)
|
|||
if (PyDict_SetItemString(d, "AST", (PyObject*)AST_type) < 0) return;
|
||||
if (PyModule_AddIntConstant(m, "PyCF_ONLY_AST", PyCF_ONLY_AST) < 0)
|
||||
return;
|
||||
if (PyModule_AddStringConstant(m, "__version__", "45597") < 0)
|
||||
if (PyModule_AddStringConstant(m, "__version__", "51600") < 0)
|
||||
return;
|
||||
if (PyDict_SetItemString(d, "mod", (PyObject*)mod_type) < 0) return;
|
||||
if (PyDict_SetItemString(d, "Module", (PyObject*)Module_type) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue