Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 366d95d

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

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed

‎Lib/types.py

Copy file name to clipboardExpand all lines: Lib/types.py
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.