https://github.com/python/cpython/commit/366d95d86239e62baf99b9cedb461e64d5dce057
commit: 366d95d86239e62baf99b9cedb461e64d5dce057
branch: main
author: Kumar Aditya <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-05-23T05:19:41Z
summary:

gh-133372: remove out of date todos from types module about generator wrapper 
(#134563)

files:
M Lib/types.py

diff --git a/Lib/types.py b/Lib/types.py
index 6efac3394345a5..cf0549315a7814 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -250,7 +250,6 @@ def deleter(self, fdel):
 
 
 class _GeneratorWrapper:
-    # TODO: Implement this in C.
     def __init__(self, gen):
         self.__wrapped = gen
         self.__isgen = gen.__class__ is GeneratorType
@@ -305,7 +304,6 @@ def coroutine(func):
         # Check if 'func' is a generator function.
         # (0x20 == CO_GENERATOR)
         if co_flags & 0x20:
-            # TODO: Implement this in C.
             co = func.__code__
             # 0x100 == CO_ITERABLE_COROUTINE
             func.__code__ = co.replace(co_flags=co.co_flags | 0x100)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to