]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129874: avoid mixing pure python and C impl in eager execution (#130515)
authorKumar Aditya <kumaraditya@python.org>
Mon, 24 Feb 2025 15:37:59 +0000 (21:07 +0530)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 15:37:59 +0000 (15:37 +0000)
Lib/asyncio/tasks.py

index 7f7ee81403a7599f3c4504c0bc84c5d308ccc819..06d46deda8d64780041ed70d33be70e9fc3f9d9e 100644 (file)
@@ -110,7 +110,7 @@ class Task(futures._PyFuture):  # Inherit Python Task implementation
             self.__eager_start()
         else:
             self._loop.call_soon(self.__step, context=self._context)
-            _register_task(self)
+            _py_register_task(self)
 
     def __del__(self):
         if self._state == futures._PENDING and self._log_destroy_pending: