mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
GH-90699: use statically allocated strings in typeobject.c (gh-93751)
This commit is contained in:
parent
ae1ca74513
commit
9331087966
3 changed files with 6 additions and 2 deletions
|
@ -90,6 +90,7 @@ struct _Py_global_strings {
|
|||
STRUCT_FOR_ID(__delete__)
|
||||
STRUCT_FOR_ID(__delitem__)
|
||||
STRUCT_FOR_ID(__dict__)
|
||||
STRUCT_FOR_ID(__dictoffset__)
|
||||
STRUCT_FOR_ID(__dir__)
|
||||
STRUCT_FOR_ID(__divmod__)
|
||||
STRUCT_FOR_ID(__doc__)
|
||||
|
@ -206,6 +207,7 @@ struct _Py_global_strings {
|
|||
STRUCT_FOR_ID(__typing_subst__)
|
||||
STRUCT_FOR_ID(__typing_unpacked_tuple_args__)
|
||||
STRUCT_FOR_ID(__warningregistry__)
|
||||
STRUCT_FOR_ID(__weaklistoffset__)
|
||||
STRUCT_FOR_ID(__weakref__)
|
||||
STRUCT_FOR_ID(__xor__)
|
||||
STRUCT_FOR_ID(_abc_impl)
|
||||
|
|
|
@ -712,6 +712,7 @@ extern "C" {
|
|||
INIT_ID(__delete__), \
|
||||
INIT_ID(__delitem__), \
|
||||
INIT_ID(__dict__), \
|
||||
INIT_ID(__dictoffset__), \
|
||||
INIT_ID(__dir__), \
|
||||
INIT_ID(__divmod__), \
|
||||
INIT_ID(__doc__), \
|
||||
|
@ -828,6 +829,7 @@ extern "C" {
|
|||
INIT_ID(__typing_subst__), \
|
||||
INIT_ID(__typing_unpacked_tuple_args__), \
|
||||
INIT_ID(__warningregistry__), \
|
||||
INIT_ID(__weaklistoffset__), \
|
||||
INIT_ID(__weakref__), \
|
||||
INIT_ID(__xor__), \
|
||||
INIT_ID(_abc_impl), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue