Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f12c9 commit 28be319Copy full SHA for 28be319
1 file changed
Modules/_functoolsmodule.c
@@ -1460,9 +1460,8 @@ _functools_exec(PyObject *module)
1460
if (state->lru_list_elem_type == NULL) {
1461
return -1;
1462
}
1463
- if (PyModule_AddType(module, state->lru_list_elem_type) < 0) {
1464
- return -1;
1465
- }
+ // lru_list_elem is used only in _lru_cache_wrapper.
+ // So we don't expose it in module namespace.
1466
1467
return 0;
1468
0 commit comments