8000 Keep stable API reference to __copy__ · python/cpython@f8fa02f · GitHub
[go: up one dir, main page]

Skip to content

Commit f8fa02f

Browse files
committed
Keep stable API reference to __copy__
1 parent 3509123 commit f8fa02f

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

Include/internal/pycore_global_objects_fini_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_global_strings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ struct _Py_global_strings {
9191
STRUCT_FOR_ID(__classdictcell__)
9292
STRUCT_FOR_ID(__complex__)
9393
STRUCT_FOR_ID(__contains__)
94+
STRUCT_FOR_ID(__copy__)
9495
STRUCT_FOR_ID(__ctypes_from_outparam__)
9596
STRUCT_FOR_ID(__del__)
9697
STRUCT_FOR_ID(__delattr__)

Include/internal/pycore_runtime_init_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_unicodeobject_generated.h

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/itertoolsmodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,7 @@ itertools_tee_impl(PyObject *module, PyObject *iterable, Py_ssize_t n)
11901190
return NULL;
11911191
}
11921192

1193+
(void)&_Py_ID(__copy__); // Retain a reference to __copy__
11931194
itertools_state *state = get_module_state(module);
11941195
to = tee_fromiterable(state, it);
11951196
Py_DECREF(it);

0 commit comments

Comments
 (0)
0