Skip to content

Commit 18fc232

Browse files
GH-90699: Remove _Py_IDENTIFIER usage from _asyncio module (#99010)
1 parent f7241aa commit 18fc232

File tree

3 files changed

+166
-69
lines changed

3 files changed

+166
-69
lines changed

Include/internal/pycore_global_strings.h

+16
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ struct _Py_global_strings {
5353
} literals;
5454

5555
struct {
56+
STRUCT_FOR_ID(CANCELLED)
57+
STRUCT_FOR_ID(FINISHED)
5658
STRUCT_FOR_ID(False)
5759
STRUCT_FOR_ID(JSONDecodeError)
60+
STRUCT_FOR_ID(PENDING)
5861
STRUCT_FOR_ID(Py_Repr)
5962
STRUCT_FOR_ID(TextIOWrapper)
6063
STRUCT_FOR_ID(True)
@@ -73,6 +76,7 @@ struct _Py_global_strings {
7376
STRUCT_FOR_ID(__anext__)
7477
STRUCT_FOR_ID(__annotations__)
7578
STRUCT_FOR_ID(__args__)
79+
STRUCT_FOR_ID(__asyncio_running_event_loop__)
7680
STRUCT_FOR_ID(__await__)
7781
STRUCT_FOR_ID(__bases__)
7882
STRUCT_FOR_ID(__bool__)
@@ -214,6 +218,7 @@ struct _Py_global_strings {
214218
STRUCT_FOR_ID(__xor__)
215219
STRUCT_FOR_ID(_abc_impl)
216220
STRUCT_FOR_ID(_annotation)
221+
STRUCT_FOR_ID(_asyncio_future_blocking)
217222
STRUCT_FOR_ID(_blksize)
218223
STRUCT_FOR_ID(_bootstrap)
219224
STRUCT_FOR_ID(_dealloc_warn)
@@ -226,6 +231,7 @@ struct _Py_global_strings {
226231
STRUCT_FOR_ID(_initializing)
227232
STRUCT_FOR_ID(_is_text_encoding)
228233
STRUCT_FOR_ID(_lock_unlock_module)
234+
STRUCT_FOR_ID(_loop)
229235
STRUCT_FOR_ID(_showwarnmsg)
230236
STRUCT_FOR_ID(_shutdown)
231237
STRUCT_FOR_ID(_slotnames)
@@ -236,6 +242,7 @@ struct _Py_global_strings {
236242
STRUCT_FOR_ID(abs_tol)
237243
STRUCT_FOR_ID(access)
238244
STRUCT_FOR_ID(add)
245+
STRUCT_FOR_ID(add_done_callback)
239246
STRUCT_FOR_ID(after_in_child)
240247
STRUCT_FOR_ID(after_in_parent)
241248
STRUCT_FOR_ID(aggregate_class)
@@ -269,6 +276,9 @@ struct _Py_global_strings {
269276
STRUCT_FOR_ID(cadata)
270277
STRUCT_FOR_ID(cafile)
271278
STRUCT_FOR_ID(call)
279+
STRUCT_FOR_ID(call_exception_handler)
280+
STRUCT_FOR_ID(call_soon)
281+
STRUCT_FOR_ID(cancel)
272282
STRUCT_FOR_ID(capath)
273283
STRUCT_FOR_ID(category)
274284
STRUCT_FOR_ID(cb_type)
@@ -326,6 +336,7 @@ struct _Py_global_strings {
326336
STRUCT_FOR_ID(digest_size)
327337
STRUCT_FOR_ID(digestmod)
328338
STRUCT_FOR_ID(dir_fd)
339+
STRUCT_FOR_ID(discard)
329340
STRUCT_FOR_ID(dispatch_table)
330341
STRUCT_FOR_ID(displayhook)
331342
STRUCT_FOR_ID(dklen)
@@ -379,9 +390,13 @@ struct _Py_global_strings {
379390
STRUCT_FOR_ID(fromlist)
380391
STRUCT_FOR_ID(fset)
381392
STRUCT_FOR_ID(func)
393+
STRUCT_FOR_ID(future)
382394
STRUCT_FOR_ID(generation)
383395
STRUCT_FOR_ID(genexpr)
384396
STRUCT_FOR_ID(get)
397+
STRUCT_FOR_ID(get_debug)
398+
STRUCT_FOR_ID(get_event_loop)
399+
STRUCT_FOR_ID(get_loop)
385400
STRUCT_FOR_ID(get_source)
386401
STRUCT_FOR_ID(getattr)
387402
STRUCT_FOR_ID(getstate)
@@ -592,6 +607,7 @@ struct _Py_global_strings {
592607
STRUCT_FOR_ID(sort)
593608
STRUCT_FOR_ID(sound)
594609
STRUCT_FOR_ID(source)
610+
STRUCT_FOR_ID(source_traceback)
595611
STRUCT_FOR_ID(src)
596612
STRUCT_FOR_ID(src_dir_fd)
597613
STRUCT_FOR_ID(stacklevel)

0 commit comments

Comments
 (0)