Skip to content

Commit dbddd5f

Browse files
port asyncio
1 parent 0a806f2 commit dbddd5f

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
@@ -52,7 +52,10 @@ struct _Py_global_strings {
5252
} literals;
5353

5454
struct {
55+
STRUCT_FOR_ID(CANCELLED)
56+
STRUCT_FOR_ID(FINISHED)
5557
STRUCT_FOR_ID(False)
58+
STRUCT_FOR_ID(PENDING)
5659
STRUCT_FOR_ID(Py_Repr)
5760
STRUCT_FOR_ID(TextIOWrapper)
5861
STRUCT_FOR_ID(True)
@@ -71,6 +74,7 @@ struct _Py_global_strings {
7174
STRUCT_FOR_ID(__anext__)
7275
STRUCT_FOR_ID(__annotations__)
7376
STRUCT_FOR_ID(__args__)
77+
STRUCT_FOR_ID(__asyncio_running_event_loop__)
7478
STRUCT_FOR_ID(__await__)
7579
STRUCT_FOR_ID(__bases__)
7680
STRUCT_FOR_ID(__bool__)
@@ -212,6 +216,7 @@ struct _Py_global_strings {
212216
STRUCT_FOR_ID(__xor__)
213217
STRUCT_FOR_ID(_abc_impl)
214218
STRUCT_FOR_ID(_annotation)
219+
STRUCT_FOR_ID(_asyncio_future_blocking)
215220
STRUCT_FOR_ID(_blksize)
216221
STRUCT_FOR_ID(_bootstrap)
217222
STRUCT_FOR_ID(_dealloc_warn)
@@ -224,6 +229,7 @@ struct _Py_global_strings {
224229
STRUCT_FOR_ID(_initializing)
225230
STRUCT_FOR_ID(_is_text_encoding)
226231
STRUCT_FOR_ID(_lock_unlock_module)
232+
STRUCT_FOR_ID(_loop)
227233
STRUCT_FOR_ID(_showwarnmsg)
228234
STRUCT_FOR_ID(_shutdown)
229235
STRUCT_FOR_ID(_slotnames)
@@ -234,6 +240,7 @@ struct _Py_global_strings {
234240
STRUCT_FOR_ID(abs_tol)
235241
STRUCT_FOR_ID(access)
236242
STRUCT_FOR_ID(add)
243+
STRUCT_FOR_ID(add_done_callback)
237244
STRUCT_FOR_ID(after_in_child)
238245
STRUCT_FOR_ID(after_in_parent)
239246
STRUCT_FOR_ID(aggregate_class)
@@ -267,6 +274,9 @@ struct _Py_global_strings {
267274
STRUCT_FOR_ID(cadata)
268275
STRUCT_FOR_ID(cafile)
269276
STRUCT_FOR_ID(call)
277+
STRUCT_FOR_ID(call_exception_handler)
278+
STRUCT_FOR_ID(call_soon)
279+
STRUCT_FOR_ID(cancel)
270280
STRUCT_FOR_ID(capath)
271281
STRUCT_FOR_ID(category)
272282
STRUCT_FOR_ID(cb_type)
@@ -324,6 +334,7 @@ struct _Py_global_strings {
324334
STRUCT_FOR_ID(digest_size)
325335
STRUCT_FOR_ID(digestmod)
326336
STRUCT_FOR_ID(dir_fd)
337+
STRUCT_FOR_ID(discard)
327338
STRUCT_FOR_ID(dispatch_table)
328339
STRUCT_FOR_ID(displayhook)
329340
STRUCT_FOR_ID(dklen)
@@ -376,9 +387,13 @@ struct _Py_global_strings {
376387
STRUCT_FOR_ID(fromlist)
377388
STRUCT_FOR_ID(fset)
378389
STRUCT_FOR_ID(func)
390+
STRUCT_FOR_ID(future)
379391
STRUCT_FOR_ID(generation)
380392
STRUCT_FOR_ID(genexpr)
381393
STRUCT_FOR_ID(get)
394+
STRUCT_FOR_ID(get_debug)
395+
STRUCT_FOR_ID(get_event_loop)
396+
STRUCT_FOR_ID(get_loop)
382397
STRUCT_FOR_ID(get_source)
383398
STRUCT_FOR_ID(getattr)
384399
STRUCT_FOR_ID(getstate)
@@ -588,6 +603,7 @@ struct _Py_global_strings {
588603
STRUCT_FOR_ID(sort)
589604
STRUCT_FOR_ID(sound)
590605
STRUCT_FOR_ID(source)
606+
STRUCT_FOR_ID(source_traceback)
591607
STRUCT_FOR_ID(src)
592608
STRUCT_FOR_ID(src_dir_fd)
593609
STRUCT_FOR_ID(stacklevel)

0 commit comments

Comments
 (0)