Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9324cb commit 366d95dCopy full SHA for 366d95d
1 file changed
Lib/types.py
@@ -250,7 +250,6 @@ def deleter(self, fdel):
250
251
252
class _GeneratorWrapper:
253
- # TODO: Implement this in C.
254
def __init__(self, gen):
255
self.__wrapped = gen
256
self.__isgen = gen.__class__ is GeneratorType
@@ -305,7 +304,6 @@ def coroutine(func):
305
304
# Check if 'func' is a generator function.
306
# (0x20 == CO_GENERATOR)
307
if co_flags & 0x20:
308
309
co = func.__code__
310
# 0x100 == CO_ITERABLE_COROUTINE
311
func.__code__ = co.replace(co_flags=co.co_flags | 0x100)
0 commit comments