diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 15:50:46 +0300 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-17 15:50:46 +0300 |
commit | 88e1e502c6427f30079d18813c6a5df92112a0ae (patch) | |
tree | be12a1a329f257e27e0b25199ee718351e6aedf5 /Lib/inspect.py | |
parent | 3d6dddc4f2698706eccf484197cbde524a326a52 (diff) | |
download | cpython-88e1e502c6427f30079d18813c6a5df92112a0ae.tar.gz |
#18705: fix a number of typos. Patch by F?vry Thibault.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 7834d12ea7..c7e7ef56dd 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -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 |