]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133372: remove out of date todos from types module about generator wrapper (#134563)
authorKumar Aditya <kumaraditya@python.org>
Fri, 23 May 2025 05:19:41 +0000 (10:49 +0530)
committerGitHub <noreply@github.com>
Fri, 23 May 2025 05:19:41 +0000 (05:19 +0000)
Lib/types.py

index 6efac3394345a546c3161f1b728f56855543d80f..cf0549315a78144b2a3efbde87928a9fd8ae65a0 100644 (file)
@@ -250,7 +250,6 @@ class DynamicClassAttribute:
 
 
 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)