The editing features described in previous subsections work when entering
code interactively. IDLE's Shell window also responds to the following:
-* :kbd:`C-c` attemps to interrupt statement execution (but may fail).
+* :kbd:`C-c` attempts to interrupt statement execution (but may fail).
* :kbd:`C-d` closes Shell if typed at a ``>>>`` prompt.
self._popen = None
def create_stdout(self, stack: contextlib.ExitStack) -> TextIO:
- """Create stdout temporay file (file descriptor)."""
+ """Create stdout temporary file (file descriptor)."""
if MS_WINDOWS:
# gh-95027: When stdout is not a TTY, Python uses the ANSI code
# the tests. The name of the dir includes the pid to allow parallel
# testing (see the -j option).
# Emscripten and WASI have stubbed getpid(), Emscripten has only
- # milisecond clock resolution. Use randint() instead.
+ # millisecond clock resolution. Use randint() instead.
if support.is_emscripten or support.is_wasi:
nounce = random.randint(0, 1_000_000)
else:
d[HashThisKeyWillClearTheDict()] = Value() # refcount of Value() is 1 now
- # Exception.__setstate__ should aquire a strong reference of key and
+ # Exception.__setstate__ should acquire a strong reference of key and
# value in the dict. Otherwise, Value()'s refcount would go below
# zero in the tp_hash call in PyObject_SetAttr(), and it would cause
# crash in GC.
if name.startswith('_') and not item.abi_only:
raise ValueError(
f'`{name}` is private (underscore-prefixed) and should be '
- + 'removed from the stable ABI list or or marked `abi_only`')
+ + 'removed from the stable ABI list or marked `abi_only`')
def check_dump(manifest, filename):
"""Check that manifest.dump() corresponds to the data.