Skip to content

Commit 366d95d

Browse files
gh-133372: remove out of date todos from types module about generator wrapper (#134563)
1 parent f9324cb commit 366d95d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/types.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ def deleter(self, fdel):
250250

251251

252252
class _GeneratorWrapper:
253-
# TODO: Implement this in C.
254253
def __init__(self, gen):
255254
self.__wrapped = gen
256255
self.__isgen = gen.__class__ is GeneratorType
@@ -305,7 +304,6 @@ def coroutine(func):
305304
# Check if 'func' is a generator function.
306305
# (0x20 == CO_GENERATOR)
307306
if co_flags & 0x20:
308-
# TODO: Implement this in C.
309307
co = func.__code__
310308
# 0x100 == CO_ITERABLE_COROUTINE
311309
func.__code__ = co.replace(co_flags=co.co_flags | 0x100)

0 commit comments

Comments
 (0)