From aff38d31757f5c44f811521d8a97d10ca380bc8e Mon Sep 17 00:00:00 2001 From: Tan Long Date: Tue, 24 Nov 2026 00:59:17 +0800 Subject: [PATCH 1/2] _csv.Dialect AC vectorcall --- Modules/_csv.c | 69 ++++++-------- Modules/clinic/_csv.c.h | 196 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 220 insertions(+), 45 deletions(-) diff --git a/Modules/_csv.c b/Modules/_csv.c index 484f7bc0f9d2d4..1b33bfc40c0222 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -457,19 +457,6 @@ Dialect_dealloc(PyObject *self) Py_DECREF(tp); } -static char *dialect_kws[] = { - "dialect", - "delimiter", - "doublequote", - "escapechar", - "lineterminator", - "quotechar", - "quoting", - "skipinitialspace", - "strict", - NULL -}; - static _csvstate * _csv_state_from_type(PyTypeObject *type, const char *name) { @@ -486,33 +473,31 @@ _csv_state_from_type(PyTypeObject *type, const char *name) return module_state; } +/*[clinic input] +@vectorcall +@classmethod +_csv.Dialect.__new__ as dialect_new + dialect: object(c_default="NULL") = None + delimiter: object(c_default="NULL") = None + doublequote: object(c_default="NULL") = None + escapechar: object(c_default="NULL") = None + lineterminator: object(c_default="NULL") = None + quotechar: object(c_default="NULL") = None + quoting: object(c_default="NULL") = None + skipinitialspace: object(c_default="NULL") = None + strict: object(c_default="NULL") = None +[clinic start generated code]*/ + static PyObject * -dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) +dialect_new_impl(PyTypeObject *type, PyObject *dialect, PyObject *delimiter, + PyObject *doublequote, PyObject *escapechar, + PyObject *lineterminator, PyObject *quotechar, + PyObject *quoting, PyObject *skipinitialspace, + PyObject *strict) +/*[clinic end generated code: output=123393bdc71ddaa6 input=a9977678df813ece]*/ { DialectObj *self; PyObject *ret = NULL; - PyObject *dialect = NULL; - PyObject *delimiter = NULL; - PyObject *doublequote = NULL; - PyObject *escapechar = NULL; - PyObject *lineterminator = NULL; - PyObject *quotechar = NULL; - PyObject *quoting = NULL; - PyObject *skipinitialspace = NULL; - PyObject *strict = NULL; - - if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "|OOOOOOOOO", dialect_kws, - &dialect, - &delimiter, - &doublequote, - &escapechar, - &lineterminator, - "echar, - "ing, - &skipinitialspace, - &strict)) - return NULL; _csvstate *module_state = _csv_state_from_type(type, "dialect_new"); if (module_state == NULL) { @@ -676,13 +661,10 @@ static PyObject * _csv_Dialect___replace___impl(DialectObj *self, PyObject *changes) /*[clinic end generated code: output=8f692c2c63a61b50 input=154beb565fbabd4c]*/ { - PyObject *newargs = PyTuple_Pack(1, self); - if (newargs == NULL) { - return NULL; - } - PyObject *result = dialect_new(Py_TYPE(self), newargs, changes); - Py_DECREF(newargs); - return result; + PyObject *const args[1] = {(PyObject *)self}; + return dialect_new_helper(Py_TYPE(self), args, 1, + changes ? PyDict_GET_SIZE(changes) : 0, + changes, NULL); } static struct PyMethodDef dialect_methods[] = { @@ -719,6 +701,7 @@ static PyType_Slot Dialect_Type_slots[] = { {Py_tp_members, Dialect_memberlist}, {Py_tp_getset, Dialect_getsetlist}, {Py_tp_new, dialect_new}, + {Py_tp_vectorcall, dialect_vectorcall}, {Py_tp_methods, dialect_methods}, {Py_tp_dealloc, Dialect_dealloc}, {Py_tp_clear, Dialect_clear}, diff --git a/Modules/clinic/_csv.c.h b/Modules/clinic/_csv.c.h index 09dbcbea7e057b..35bfa01cc2d3bd 100644 --- a/Modules/clinic/_csv.c.h +++ b/Modules/clinic/_csv.c.h @@ -7,7 +7,199 @@ preserve # include "pycore_runtime.h" // _Py_ID() #endif #include "pycore_critical_section.h"// Py_BEGIN_CRITICAL_SECTION() -#include "pycore_modsupport.h" // _PyArg_NoPositional() +#include "pycore_modsupport.h" // _PyArg_UnpackKeywords() + +static PyObject * +dialect_new_impl(PyTypeObject *type, PyObject *dialect, PyObject *delimiter, + PyObject *doublequote, PyObject *escapechar, + PyObject *lineterminator, PyObject *quotechar, + PyObject *quoting, PyObject *skipinitialspace, + PyObject *strict); + +static PyObject * +dialect_new_helper(PyTypeObject *type, PyObject *const *args, + Py_ssize_t nargs, Py_ssize_t nkw, PyObject *kwargs, PyObject *kwnames) +{ + PyObject *return_value = NULL; + #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE) + + #define NUM_KEYWORDS 9 + static struct { + PyGC_Head _this_is_not_used; + PyObject_VAR_HEAD + Py_hash_t ob_hash; + PyObject *ob_item[NUM_KEYWORDS]; + } _kwtuple = { + .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS) + .ob_hash = -1, + .ob_item = { &_Py_ID(dialect), &_Py_ID(delimiter), &_Py_ID(doublequote), &_Py_ID(escapechar), &_Py_ID(lineterminator), &_Py_ID(quotechar), &_Py_ID(quoting), &_Py_ID(skipinitialspace), &_Py_ID(strict), }, + }; + #undef NUM_KEYWORDS + #define KWTUPLE (&_kwtuple.ob_base.ob_base) + + #else // !Py_BUILD_CORE + # define KWTUPLE NULL + #endif // !Py_BUILD_CORE + + static const char * const _keywords[] = {"dialect", "delimiter", "doublequote", "escapechar", "lineterminator", "quotechar", "quoting", "skipinitialspace", "strict", NULL}; + static _PyArg_Parser _parser = { + .keywords = _keywords, + .fname = "Dialect", + .kwtuple = KWTUPLE, + }; + #undef KWTUPLE + PyObject *argsbuf[9]; + PyObject * const *fastargs; + Py_ssize_t noptargs = nargs + nkw - 0; + PyObject *dialect = NULL; + PyObject *delimiter = NULL; + PyObject *doublequote = NULL; + PyObject *escapechar = NULL; + PyObject *lineterminator = NULL; + PyObject *quotechar = NULL; + PyObject *quoting = NULL; + PyObject *skipinitialspace = NULL; + PyObject *strict = NULL; + + fastargs = _PyArg_UnpackKeywords(args, nargs, kwargs, kwnames, &_parser, + /*minpos*/ 0, /*maxpos*/ 9, /*minkw*/ 0, /*varpos*/ 0, argsbuf); + if (!fastargs) { + goto exit; + } + if (!noptargs) { + goto skip_optional_pos; + } + if (fastargs[0]) { + dialect = fastargs[0]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[1]) { + delimiter = fastargs[1]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[2]) { + doublequote = fastargs[2]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[3]) { + escapechar = fastargs[3]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[4]) { + lineterminator = fastargs[4]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[5]) { + quotechar = fastargs[5]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[6]) { + quoting = fastargs[6]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + if (fastargs[7]) { + skipinitialspace = fastargs[7]; + if (!--noptargs) { + goto skip_optional_pos; + } + } + strict = fastargs[8]; +skip_optional_pos: + return_value = dialect_new_impl(type, dialect, delimiter, doublequote, escapechar, lineterminator, quotechar, quoting, skipinitialspace, strict); + +exit: + return return_value; +} + +static PyObject * +dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) +{ + return dialect_new_helper(type, _PyTuple_CAST(args)->ob_item, + PyTuple_GET_SIZE(args), + kwargs ? PyDict_GET_SIZE(kwargs) : 0, + kwargs, NULL); +} + +static PyObject * +dialect_vectorcall(PyObject *type, PyObject *const *args, + size_t nargsf, PyObject *kwnames) +{ + PyObject *return_value = NULL; + Py_ssize_t nargs = PyVectorcall_NARGS(nargsf); + PyObject *dialect = NULL; + PyObject *delimiter = NULL; + PyObject *doublequote = NULL; + PyObject *escapechar = NULL; + PyObject *lineterminator = NULL; + PyObject *quotechar = NULL; + PyObject *quoting = NULL; + PyObject *skipinitialspace = NULL; + PyObject *strict = NULL; + + assert(_PyType_CAST(type)->tp_new == dialect_new); + /* Make sure the type object is immutable: the generated + * vectorcall doesn't deal e.g. with users reassigning __init__. */ + assert(PyType_HasFeature(_PyType_CAST(type), Py_TPFLAGS_IMMUTABLETYPE)); + if (kwnames != NULL || nargs > 9) { + return dialect_new_helper(_PyType_CAST(type), args, nargs, + kwnames ? PyTuple_GET_SIZE(kwnames) : 0, + NULL, kwnames); + } + if (nargs < 1) { + goto skip_optional; + } + dialect = args[0]; + if (nargs < 2) { + goto skip_optional; + } + delimiter = args[1]; + if (nargs < 3) { + goto skip_optional; + } + doublequote = args[2]; + if (nargs < 4) { + goto skip_optional; + } + escapechar = args[3]; + if (nargs < 5) { + goto skip_optional; + } + lineterminator = args[4]; + if (nargs < 6) { + goto skip_optional; + } + quotechar = args[5]; + if (nargs < 7) { + goto skip_optional; + } + quoting = args[6]; + if (nargs < 8) { + goto skip_optional; + } + skipinitialspace = args[7]; + if (nargs < 9) { + goto skip_optional; + } + strict = args[8]; +skip_optional: + return_value = dialect_new_impl(_PyType_CAST(type), dialect, delimiter, doublequote, escapechar, lineterminator, quotechar, quoting, skipinitialspace, strict); + + return return_value; +} PyDoc_STRVAR(_csv_Dialect___reduce____doc__, "__reduce__($self, /)\n" @@ -433,4 +625,4 @@ _csv_field_size_limit(PyObject *module, PyObject *const *args, Py_ssize_t nargs, exit: return return_value; } -/*[clinic end generated code: output=30eac1c04ff9d38a input=a9049054013a1b77]*/ +/*[clinic end generated code: output=6c48651e9587180d input=a9049054013a1b77]*/ From 130f4bf920673e8c06e23319e2ca2a097ab110b6 Mon Sep 17 00:00:00 2001 From: Tan Long Date: Tue, 24 Nov 2026 17:51:47 +0800 Subject: [PATCH 2/2] regenerate precompiled identifiers --- Include/internal/pycore_global_objects_fini_generated.h | 8 ++++++++ Include/internal/pycore_global_strings.h | 8 ++++++++ Include/internal/pycore_runtime_init_generated.h | 8 ++++++++ Include/internal/pycore_unicodeobject_generated.h | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/Include/internal/pycore_global_objects_fini_generated.h b/Include/internal/pycore_global_objects_fini_generated.h index 483a1dc58791cd..1e475875455568 100644 --- a/Include/internal/pycore_global_objects_fini_generated.h +++ b/Include/internal/pycore_global_objects_fini_generated.h @@ -422,11 +422,13 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(default), "default", 7); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(defaultaction), "defaultaction", 13); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(delete), "delete", 6); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(delimiter), "delimiter", 9); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(depth), "depth", 5); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(desired_access), "desired_access", 14); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(detect_types), "detect_types", 12); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(deterministic), "deterministic", 13); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(device), "device", 6); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(dialect), "dialect", 7); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(dict), "dict", 4); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(difference_update), "difference_update", 17); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(digest), "digest", 6); @@ -440,6 +442,7 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(doc), "doc", 3); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(done), "done", 4); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(dont_inherit), "dont_inherit", 12); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(doublequote), "doublequote", 11); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(dst), "dst", 3); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(dst_dir_fd), "dst_dir_fd", 10); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(duration_sec), "duration_sec", 12); @@ -458,6 +461,7 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(env), "env", 3); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(error_rate), "error_rate", 10); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(errors), "errors", 6); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(escapechar), "escapechar", 10); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(event), "event", 5); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(eventmask), "eventmask", 9); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(exc), "exc", 3); @@ -618,6 +622,7 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(line), "line", 4); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(line_buffering), "line_buffering", 14); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(lineno), "lineno", 6); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(lineterminator), "lineterminator", 14); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(little), "little", 6); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(lo), "lo", 2); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(locale), "locale", 6); @@ -749,7 +754,9 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(qualname), "qualname", 8); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(query), "query", 5); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(queuetype), "queuetype", 9); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(quotechar), "quotechar", 9); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(quotetabs), "quotetabs", 9); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(quoting), "quoting", 7); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(random_func), "random_func", 11); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(raw), "raw", 3); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(read), "read", 4); @@ -815,6 +822,7 @@ _PyStaticObjects_CheckAll(PyInterpreterState *interp) { _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(sizehint), "sizehint", 8); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(skip_file_prefixes), "skip_file_prefixes", 18); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(skip_non_matching_threads), "skip_non_matching_threads", 25); + _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(skipinitialspace), "skipinitialspace", 16); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(sleep), "sleep", 5); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(sock), "sock", 4); _PyStaticObject_CheckUnicodeSingleton((PyObject *)&_Py_ID(sort), "sort", 4); diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h index 949e19196dc527..39d60366a06b33 100644 --- a/Include/internal/pycore_global_strings.h +++ b/Include/internal/pycore_global_strings.h @@ -434,11 +434,13 @@ struct _Py_global_strings { STRUCT_FOR_ID(default) STRUCT_FOR_ID(defaultaction) STRUCT_FOR_ID(delete) + STRUCT_FOR_ID(delimiter) STRUCT_FOR_ID(depth) STRUCT_FOR_ID(desired_access) STRUCT_FOR_ID(detect_types) STRUCT_FOR_ID(deterministic) STRUCT_FOR_ID(device) + STRUCT_FOR_ID(dialect) STRUCT_FOR_ID(dict) STRUCT_FOR_ID(difference_update) STRUCT_FOR_ID(digest) @@ -452,6 +454,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(doc) STRUCT_FOR_ID(done) STRUCT_FOR_ID(dont_inherit) + STRUCT_FOR_ID(doublequote) STRUCT_FOR_ID(dst) STRUCT_FOR_ID(dst_dir_fd) STRUCT_FOR_ID(duration_sec) @@ -470,6 +473,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(env) STRUCT_FOR_ID(error_rate) STRUCT_FOR_ID(errors) + STRUCT_FOR_ID(escapechar) STRUCT_FOR_ID(event) STRUCT_FOR_ID(eventmask) STRUCT_FOR_ID(exc) @@ -630,6 +634,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(line) STRUCT_FOR_ID(line_buffering) STRUCT_FOR_ID(lineno) + STRUCT_FOR_ID(lineterminator) STRUCT_FOR_ID(little) STRUCT_FOR_ID(lo) STRUCT_FOR_ID(locale) @@ -761,7 +766,9 @@ struct _Py_global_strings { STRUCT_FOR_ID(qualname) STRUCT_FOR_ID(query) STRUCT_FOR_ID(queuetype) + STRUCT_FOR_ID(quotechar) STRUCT_FOR_ID(quotetabs) + STRUCT_FOR_ID(quoting) STRUCT_FOR_ID(random_func) STRUCT_FOR_ID(raw) STRUCT_FOR_ID(read) @@ -827,6 +834,7 @@ struct _Py_global_strings { STRUCT_FOR_ID(sizehint) STRUCT_FOR_ID(skip_file_prefixes) STRUCT_FOR_ID(skip_non_matching_threads) + STRUCT_FOR_ID(skipinitialspace) STRUCT_FOR_ID(sleep) STRUCT_FOR_ID(sock) STRUCT_FOR_ID(sort) diff --git a/Include/internal/pycore_runtime_init_generated.h b/Include/internal/pycore_runtime_init_generated.h index 4ee954942521ae..f4c582b2dda013 100644 --- a/Include/internal/pycore_runtime_init_generated.h +++ b/Include/internal/pycore_runtime_init_generated.h @@ -1709,11 +1709,13 @@ extern "C" { INIT_ID(default), \ INIT_ID(defaultaction), \ INIT_ID(delete), \ + INIT_ID(delimiter), \ INIT_ID(depth), \ INIT_ID(desired_access), \ INIT_ID(detect_types), \ INIT_ID(deterministic), \ INIT_ID(device), \ + INIT_ID(dialect), \ INIT_ID(dict), \ INIT_ID(difference_update), \ INIT_ID(digest), \ @@ -1727,6 +1729,7 @@ extern "C" { INIT_ID(doc), \ INIT_ID(done), \ INIT_ID(dont_inherit), \ + INIT_ID(doublequote), \ INIT_ID(dst), \ INIT_ID(dst_dir_fd), \ INIT_ID(duration_sec), \ @@ -1745,6 +1748,7 @@ extern "C" { INIT_ID(env), \ INIT_ID(error_rate), \ INIT_ID(errors), \ + INIT_ID(escapechar), \ INIT_ID(event), \ INIT_ID(eventmask), \ INIT_ID(exc), \ @@ -1905,6 +1909,7 @@ extern "C" { INIT_ID(line), \ INIT_ID(line_buffering), \ INIT_ID(lineno), \ + INIT_ID(lineterminator), \ INIT_ID(little), \ INIT_ID(lo), \ INIT_ID(locale), \ @@ -2036,7 +2041,9 @@ extern "C" { INIT_ID(qualname), \ INIT_ID(query), \ INIT_ID(queuetype), \ + INIT_ID(quotechar), \ INIT_ID(quotetabs), \ + INIT_ID(quoting), \ INIT_ID(random_func), \ INIT_ID(raw), \ INIT_ID(read), \ @@ -2102,6 +2109,7 @@ extern "C" { INIT_ID(sizehint), \ INIT_ID(skip_file_prefixes), \ INIT_ID(skip_non_matching_threads), \ + INIT_ID(skipinitialspace), \ INIT_ID(sleep), \ INIT_ID(sock), \ INIT_ID(sort), \ diff --git a/Include/internal/pycore_unicodeobject_generated.h b/Include/internal/pycore_unicodeobject_generated.h index 3aad3345abc4d0..77e06f5a812ccd 100644 --- a/Include/internal/pycore_unicodeobject_generated.h +++ b/Include/internal/pycore_unicodeobject_generated.h @@ -386,11 +386,13 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_default._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_defaultaction._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_delete._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_delimiter._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_depth._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_desired_access._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_detect_types._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_deterministic._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_device._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_dialect._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_dict._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_difference_update._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_digest._ascii.ob_base), @@ -404,6 +406,7 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_doc._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_done._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_dont_inherit._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_doublequote._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_dst._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_dst_dir_fd._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_duration_sec._ascii.ob_base), @@ -422,6 +425,7 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_env._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_error_rate._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_errors._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_escapechar._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_event._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_eventmask._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_exc._ascii.ob_base), @@ -582,6 +586,7 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_line._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_line_buffering._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_lineno._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_lineterminator._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_little._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_lo._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_locale._ascii.ob_base), @@ -713,7 +718,9 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_qualname._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_query._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_queuetype._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_quotechar._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_quotetabs._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_quoting._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_random_func._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_raw._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_read._ascii.ob_base), @@ -779,6 +786,7 @@ _PyUnicode_InitStaticStrings(PyInterpreterState *interp) { offsetof(struct _Py_global_strings, identifiers._py_sizehint._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_skip_file_prefixes._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_skip_non_matching_threads._ascii.ob_base), + offsetof(struct _Py_global_strings, identifiers._py_skipinitialspace._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_sleep._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_sock._ascii.ob_base), offsetof(struct _Py_global_strings, identifiers._py_sort._ascii.ob_base),