Skip to content

Commit 9f626af

Browse files
regen
1 parent e1a8968 commit 9f626af

File tree

4 files changed

+133
-4
lines changed

4 files changed

+133
-4
lines changed

Include/internal/pycore_global_strings.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ struct _Py_global_strings {
9191
STRUCT_FOR_ID(__complex__)
9292
STRUCT_FOR_ID(__contains__)
9393
STRUCT_FOR_ID(__copy__)
94+
STRUCT_FOR_ID(__ctypes_from_outparam__)
9495
STRUCT_FOR_ID(__del__)
9596
STRUCT_FOR_ID(__delattr__)
9697
STRUCT_FOR_ID(__delete__)
@@ -217,25 +218,39 @@ struct _Py_global_strings {
217218
STRUCT_FOR_ID(__weakref__)
218219
STRUCT_FOR_ID(__xor__)
219220
STRUCT_FOR_ID(_abc_impl)
221+
STRUCT_FOR_ID(_abstract_)
220222
STRUCT_FOR_ID(_annotation)
223+
STRUCT_FOR_ID(_anonymous_)
224+
STRUCT_FOR_ID(_argtypes_)
225+
STRUCT_FOR_ID(_as_parameter_)
221226
STRUCT_FOR_ID(_asyncio_future_blocking)
222227
STRUCT_FOR_ID(_blksize)
223228
STRUCT_FOR_ID(_bootstrap)
229+
STRUCT_FOR_ID(_check_retval_)
224230
STRUCT_FOR_ID(_dealloc_warn)
225231
STRUCT_FOR_ID(_feature_version)
232+
STRUCT_FOR_ID(_fields_)
226233
STRUCT_FOR_ID(_finalizing)
227234
STRUCT_FOR_ID(_find_and_load)
228235
STRUCT_FOR_ID(_fix_up_module)
236+
STRUCT_FOR_ID(_flags_)
229237
STRUCT_FOR_ID(_get_sourcefile)
230238
STRUCT_FOR_ID(_handle_fromlist)
231239
STRUCT_FOR_ID(_initializing)
232240
STRUCT_FOR_ID(_is_text_encoding)
241+
STRUCT_FOR_ID(_length_)
233242
STRUCT_FOR_ID(_lock_unlock_module)
234243
STRUCT_FOR_ID(_loop)
244+
STRUCT_FOR_ID(_needs_com_addref_)
245+
STRUCT_FOR_ID(_pack_)
246+
STRUCT_FOR_ID(_restype_)
235247
STRUCT_FOR_ID(_showwarnmsg)
236248
STRUCT_FOR_ID(_shutdown)
237249
STRUCT_FOR_ID(_slotnames)
250+
STRUCT_FOR_ID(_swappedbytes_)
251+
STRUCT_FOR_ID(_type_)
238252
STRUCT_FOR_ID(_uninitialized_submodules)
253+
STRUCT_FOR_ID(_use_broken_old_ctypes_structure_semantics_)
239254
STRUCT_FOR_ID(_warn_unawaited_coroutine)
240255
STRUCT_FOR_ID(_xoptions)
241256
STRUCT_FOR_ID(a)
@@ -387,6 +402,7 @@ struct _Py_global_strings {
387402
STRUCT_FOR_ID(follow_symlinks)
388403
STRUCT_FOR_ID(format)
389404
STRUCT_FOR_ID(frequency)
405+
STRUCT_FOR_ID(from_param)
390406
STRUCT_FOR_ID(fromlist)
391407
STRUCT_FOR_ID(fset)
392408
STRUCT_FOR_ID(func)

Include/internal/pycore_runtime_init_generated.h

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

Modules/_ctypes/callproc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
#endif
6060

6161
#include "Python.h"
62+
#include "pycore_runtime_init.h" // _Py_ID()
6263
#include "structmember.h" // PyMemberDef
6364

6465
#include <stdbool.h>
@@ -1849,7 +1850,7 @@ unpickle(PyObject *self, PyObject *args)
18491850

18501851
if (!PyArg_ParseTuple(args, "OO!", &typ, &PyTuple_Type, &state))
18511852
return NULL;
1852-
obj = _PyObject_CallMethodIdOneArg(typ, &PyId___new__, typ);
1853+
obj = PyObject_CallMethodOneArg(typ, &_Py_ID(__new__), typ);
18531854
if (obj == NULL)
18541855
return NULL;
18551856

Modules/_ctypes/stgdict.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
379379
big_endian = PY_BIG_ENDIAN;
380380
}
381381

382-
if (_PyObject_LookupAttrId(type,
383-
&PyId__use_broken_old_ctypes_structure_semantics_, &tmp) < 0)
382+
if (_PyObject_LookupAttr(type,
383+
&_Py_ID(_use_broken_old_ctypes_structure_semantics_), &tmp) < 0)
384384
{
385385
return -1;
386386
}
@@ -392,7 +392,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
392392
use_broken_old_ctypes_semantics = 0;
393393
}
394394

395-
if (_PyObject_LookupAttrId(type, &PyId__pack_, &tmp) < 0) {
395+
if (_PyObject_LookupAttr(type, &_Py_ID(_pack_), &tmp) < 0) {
396396
return -1;
397397
}
398398
if (tmp) {

0 commit comments

Comments
 (0)