mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#18705: merge with 3.3.
This commit is contained in:
commit
9a3777e525
26 changed files with 49 additions and 49 deletions
|
@ -47,7 +47,7 @@ from collections import namedtuple, OrderedDict
|
|||
|
||||
# Create constants for the compiler flags in Include/code.h
|
||||
# We try to get them from dis to avoid duplication, but fall
|
||||
# back to hardcording so the dependency is optional
|
||||
# back to hardcoding so the dependency is optional
|
||||
try:
|
||||
from dis import COMPILER_FLAG_NAMES as _flag_names
|
||||
except ImportError:
|
||||
|
@ -184,7 +184,7 @@ def isgenerator(object):
|
|||
"""Return true if the object is a generator.
|
||||
|
||||
Generator objects provide these attributes:
|
||||
__iter__ defined to support interation over container
|
||||
__iter__ defined to support iteration over container
|
||||
close raises a new GeneratorExit exception inside the
|
||||
generator to terminate the iteration
|
||||
gi_code code object
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue