diff options
Diffstat (limited to 'Lib/types.py')
-rw-r--r-- | Lib/types.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/types.py b/Lib/types.py index 0d2905d..39812ac 100644 --- a/Lib/types.py +++ b/Lib/types.py @@ -48,10 +48,9 @@ except RuntimeError: # Execution in restricted environment pass -def g(): +def _g(): yield 1 -GeneratorType = type(g()) -del g +GeneratorType = type(_g()) class _C: def _m(self): pass @@ -87,4 +86,4 @@ EllipsisType = type(Ellipsis) DictProxyType = type(TypeType.__dict__) NotImplementedType = type(NotImplemented) -del sys, _f, _C, _x # Not for export +del sys, _f, _g, _C, _x # Not for export |