mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
#18705: fix a number of typos. Patch by Févry Thibault.
This commit is contained in:
parent
67f39777fa
commit
30b9d5d3af
25 changed files with 44 additions and 44 deletions
|
@ -48,7 +48,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:
|
||||
|
@ -185,7 +185,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