Skip to content

Commit 49b2734

Browse files
scopserhiy-storchaka
authored andcommitted
Spelling fixes (#2902)
1 parent d9d55c9 commit 49b2734

29 files changed

+54
-54
lines changed

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ always available.
610610
:class:`~collections.namedtuple` of the form `(firstiter, finalizer)`,
611611
where *firstiter* and *finalizer* are expected to be either ``None`` or
612612
functions which take an :term:`asynchronous generator iterator` as an
613-
argument, and are used to schedule finalization of an asychronous
613+
argument, and are used to schedule finalization of an asynchronous
614614
generator by an event loop.
615615

616616
.. versionadded:: 3.6

Include/abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ PyAPI_FUNC(PyObject*) _PyStack_AsTupleSlice(
170170
format to a Python dictionary ("kwargs" dict).
171171
172172
The type of kwnames keys is not checked. The final function getting
173-
arguments is reponsible to check if all keys are strings, for example using
173+
arguments is responsible to check if all keys are strings, for example using
174174
PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
175175
176176
Duplicate keys are merged using the last value. If duplicate keys must raise

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_Encode(
12271227
/* Encodes a Unicode object and returns the result as Python
12281228
object.
12291229
1230-
This API is DEPRECATED. It is superceeded by PyUnicode_AsEncodedString()
1230+
This API is DEPRECATED. It is superseded by PyUnicode_AsEncodedString()
12311231
since all standard encodings (except rot13) encode str to bytes.
12321232
Use PyCodec_Encode() for encoding with rot13 and non-standard codecs
12331233
that encode form str to non-bytes. */

Lib/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def _decompose(flag, value):
840840
not_covered = value
841841
negative = value < 0
842842
# issue29167: wrap accesses to _value2member_map_ in a list to avoid race
843-
# conditions between iterating over it and having more psuedo-
843+
# conditions between iterating over it and having more pseudo-
844844
# members added to it
845845
if negative:
846846
# only check for named flags

Lib/idlelib/configdialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def create_page_extensions(self):
12161216
which are boolean, and can be toggled with a True/False button.
12171217
12181218
Methods:
1219-
load_extentions:
1219+
load_extensions:
12201220
extension_selected: Handle selection from list.
12211221
create_extension_frame: Hold widgets for one extension.
12221222
set_extension_value: Set in userCfg['extensions'].

Lib/test/decimaltestdata/ddDivide.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ dddiv1056 divide 1e-277 -1e+311 -> -0E-398 Underflow Subnormal Inexact Rounded
579579
dddiv1057 divide -1e-277 1e+311 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped
580580
dddiv1058 divide -1e-277 -1e+311 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped
581581

582-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
582+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
583583
dddiv1060 divide 1e-291 1e+101 -> 1E-392 Subnormal
584584
dddiv1061 divide 1e-291 1e+102 -> 1E-393 Subnormal
585585
dddiv1062 divide 1e-291 1e+103 -> 1E-394 Subnormal

Lib/test/decimaltestdata/ddDivideInt.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ dddvi1056 divideint 1e-277 -1e+311 -> -0
248248
dddvi1057 divideint -1e-277 1e+311 -> -0
249249
dddvi1058 divideint -1e-277 -1e+311 -> 0
250250

251-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
251+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
252252
dddvi1060 divideint 1e-291 1e+101 -> 0
253253
dddvi1061 divideint 1e-291 1e+102 -> 0
254254
dddvi1062 divideint 1e-291 1e+103 -> 0

Lib/test/decimaltestdata/ddFMA.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extended: 1
2626
clamp: 1
2727
rounding: half_even
2828

29-
-- These tests comprese three parts:
29+
-- These tests comprise three parts:
3030
-- 1. Sanity checks and other three-operand tests (especially those
3131
-- where the fused operation makes a difference)
3232
-- 2. Multiply tests (third operand is neutral zero [0E+emax])
@@ -458,7 +458,7 @@ ddfma2756 fma 1e-277 -1e-311 0e+384 -> -0E-398 Underflow Subnormal Inexact
458458
ddfma2757 fma -1e-277 1e-311 0e+384 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped
459459
ddfma2758 fma -1e-277 -1e-311 0e+384 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped
460460

461-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
461+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
462462
ddfma2760 fma 1e-291 1e-101 0e+384 -> 1E-392 Subnormal
463463
ddfma2761 fma 1e-291 1e-102 0e+384 -> 1E-393 Subnormal
464464
ddfma2762 fma 1e-291 1e-103 0e+384 -> 1E-394 Subnormal

Lib/test/decimaltestdata/ddMultiply.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ ddmul756 multiply 1e-277 -1e-311 -> -0E-398 Underflow Subnormal Inexact Rounded
347347
ddmul757 multiply -1e-277 1e-311 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped
348348
ddmul758 multiply -1e-277 -1e-311 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped
349349

350-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
350+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
351351
ddmul760 multiply 1e-291 1e-101 -> 1E-392 Subnormal
352352
ddmul761 multiply 1e-291 1e-102 -> 1E-393 Subnormal
353353
ddmul762 multiply 1e-291 1e-103 -> 1E-394 Subnormal

Lib/test/decimaltestdata/divide.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ divx959 divide 9E-999999999 -9.100 -> -9.8901099E-1000000000 Inexact Rounded Und
759759

760760
-- overflow and underflow (additional edge tests in multiply.decTest)
761761
-- 'subnormal' results now possible (all hard underflow or overflow in
762-
-- base arithemtic)
762+
-- base arithmetic)
763763
divx960 divide 1e-600000000 1e+400000001 -> 1E-1000000001 Subnormal
764764
divx961 divide 1e-600000000 1e+400000002 -> 1E-1000000002 Subnormal
765765
divx962 divide 1e-600000000 1e+400000003 -> 1E-1000000003 Subnormal

Lib/test/decimaltestdata/dqDivide.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ dqdiv1756 divide 1e-4277 -1e+3311 -> -0E-6176 Underflow Subnormal Inexact Round
580580
dqdiv1757 divide -1e-4277 1e+3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped
581581
dqdiv1758 divide -1e-4277 -1e+3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped
582582

583-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
583+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
584584
dqdiv1760 divide 1e-6069 1e+101 -> 1E-6170 Subnormal
585585
dqdiv1761 divide 1e-6069 1e+102 -> 1E-6171 Subnormal
586586
dqdiv1762 divide 1e-6069 1e+103 -> 1E-6172 Subnormal

Lib/test/decimaltestdata/dqDivideInt.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ dqdvi1056 divideint 1e-277 -1e+311 -> -0
249249
dqdvi1057 divideint -1e-277 1e+311 -> -0
250250
dqdvi1058 divideint -1e-277 -1e+311 -> 0
251251

252-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
252+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
253253
dqdvi1060 divideint 1e-291 1e+101 -> 0
254254
dqdvi1061 divideint 1e-291 1e+102 -> 0
255255
dqdvi1062 divideint 1e-291 1e+103 -> 0

Lib/test/decimaltestdata/dqFMA.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ maxExponent: 6144
2626
minExponent: -6143
2727
rounding: half_even
2828

29-
-- These tests comprese three parts:
29+
-- These tests comprise three parts:
3030
-- 1. Sanity checks and other three-operand tests (especially those
3131
-- where the fused operation makes a difference)
3232
-- 2. Multiply tests (third operand is neutral zero [0E+emax])
@@ -476,7 +476,7 @@ dqfma2756 fma 1e-4277 -1e-3311 0e+6144 -> -0E-6176 Underflow Subnormal Inex
476476
dqfma2757 fma -1e-4277 1e-3311 0e+6144 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped
477477
dqfma2758 fma -1e-4277 -1e-3311 0e+6144 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped
478478

479-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
479+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
480480
dqfma2760 fma 1e-6069 1e-101 0e+6144 -> 1E-6170 Subnormal
481481
dqfma2761 fma 1e-6069 1e-102 0e+6144 -> 1E-6171 Subnormal
482482
dqfma2762 fma 1e-6069 1e-103 0e+6144 -> 1E-6172 Subnormal

Lib/test/decimaltestdata/dqMultiply.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ dqmul756 multiply 1e-4277 -1e-3311 -> -0E-6176 Underflow Subnormal Inexact Roun
355355
dqmul757 multiply -1e-4277 1e-3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped
356356
dqmul758 multiply -1e-4277 -1e-3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped
357357

358-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
358+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
359359
dqmul760 multiply 1e-6069 1e-101 -> 1E-6170 Subnormal
360360
dqmul761 multiply 1e-6069 1e-102 -> 1E-6171 Subnormal
361361
dqmul762 multiply 1e-6069 1e-103 -> 1E-6172 Subnormal

Lib/test/decimaltestdata/fma.decTest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rounding: half_up
2525
maxExponent: 384
2626
minexponent: -383
2727

28-
-- These tests comprese three parts:
28+
-- These tests comprise three parts:
2929
-- 1. Sanity checks and other three-operand tests (especially those
3030
-- where the fused operation makes a difference)
3131
-- 2. Multiply tests (third operand is neutral zero [0E+emax])
@@ -610,7 +610,7 @@ fmax2756 fma 1e-777777 -1e-411111 0E+999999 -> -0E-1000007 Underflow Subnorma
610610
fmax2757 fma -1e-777777 1e-411111 0E+999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped
611611
fmax2758 fma -1e-777777 -1e-411111 0E+999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped
612612

613-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
613+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
614614
precision: 9
615615
fmax2760 fma 1e-600000 1e-400001 0E+999999 -> 1E-1000001 Subnormal
616616
fmax2761 fma 1e-600000 1e-400002 0E+999999 -> 1E-1000002 Subnormal

Lib/test/decimaltestdata/multiply.decTest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ mulx756 multiply 1e-777777777 -1e-411111111 -> -0E-1000000007 Underflow Subnorm
533533
mulx757 multiply -1e-777777777 1e-411111111 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
534534
mulx758 multiply -1e-777777777 -1e-411111111 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
535535

536-
-- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
536+
-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
537537
precision: 9
538538
mulx760 multiply 1e-600000000 1e-400000001 -> 1E-1000000001 Subnormal
539539
mulx761 multiply 1e-600000000 1e-400000002 -> 1E-1000000002 Subnormal

Lib/test/test_binop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def isnum(x):
2222
return 0
2323

2424
def isRat(x):
25-
"""Test wheter an object is an instance of the Rat class."""
25+
"""Test whether an object is an instance of the Rat class."""
2626
return isinstance(x, Rat)
2727

2828
class Rat(object):

Lib/test/test_functools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ def f(x, y):
12531253
self.assertEqual(mock_int.__hash__.call_count, 2)
12541254
self.assertEqual(f.cache_info(), (1, 1, 1, 1))
12551255

1256-
# Cache eviction: No use as an argument gives no additonal call
1256+
# Cache eviction: No use as an argument gives no additional call
12571257
self.assertEqual(f(6, 2), 20)
12581258
self.assertEqual(mock_int.__hash__.call_count, 2)
12591259
self.assertEqual(f.cache_info(), (1, 2, 1, 1))

Lib/test/test_importlib/import_/test___package__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
class Using__package__:
1313

14-
"""Use of __package__ supercedes the use of __name__/__path__ to calculate
14+
"""Use of __package__ supersedes the use of __name__/__path__ to calculate
1515
what package a module belongs to. The basic algorithm is [__package__]::
1616
1717
def resolve_name(name, package, level):

Lib/test/test_os.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,19 +1598,19 @@ def test_internal_execvpe_str(self):
15981598
def test_execve_invalid_env(self):
15991599
args = [sys.executable, '-c', 'pass']
16001600

1601-
# null character in the enviroment variable name
1601+
# null character in the environment variable name
16021602
newenv = os.environ.copy()
16031603
newenv["FRUIT\0VEGETABLE"] = "cabbage"
16041604
with self.assertRaises(ValueError):
16051605
os.execve(args[0], args, newenv)
16061606

1607-
# null character in the enviroment variable value
1607+
# null character in the environment variable value
16081608
newenv = os.environ.copy()
16091609
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
16101610
with self.assertRaises(ValueError):
16111611
os.execve(args[0], args, newenv)
16121612

1613-
# equal character in the enviroment variable name
1613+
# equal character in the environment variable name
16141614
newenv = os.environ.copy()
16151615
newenv["FRUIT=ORANGE"] = "lemon"
16161616
with self.assertRaises(ValueError):
@@ -2430,7 +2430,7 @@ def test_spawnve_noargs(self):
24302430
def _test_invalid_env(self, spawn):
24312431
args = [sys.executable, '-c', 'pass']
24322432

2433-
# null character in the enviroment variable name
2433+
# null character in the environment variable name
24342434
newenv = os.environ.copy()
24352435
newenv["FRUIT\0VEGETABLE"] = "cabbage"
24362436
try:
@@ -2440,7 +2440,7 @@ def _test_invalid_env(self, spawn):
24402440
else:
24412441
self.assertEqual(exitcode, 127)
24422442

2443-
# null character in the enviroment variable value
2443+
# null character in the environment variable value
24442444
newenv = os.environ.copy()
24452445
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
24462446
try:
@@ -2450,7 +2450,7 @@ def _test_invalid_env(self, spawn):
24502450
else:
24512451
self.assertEqual(exitcode, 127)
24522452

2453-
# equal character in the enviroment variable name
2453+
# equal character in the environment variable name
24542454
newenv = os.environ.copy()
24552455
newenv["FRUIT=ORANGE"] = "lemon"
24562456
try:
@@ -2460,7 +2460,7 @@ def _test_invalid_env(self, spawn):
24602460
else:
24612461
self.assertEqual(exitcode, 127)
24622462

2463-
# equal character in the enviroment variable value
2463+
# equal character in the environment variable value
24642464
filename = support.TESTFN
24652465
self.addCleanup(support.unlink, filename)
24662466
with open(filename, "w") as fp:

Lib/test/test_subprocess.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,25 +668,25 @@ def test_invalid_cmd(self):
668668
subprocess.Popen([sys.executable, "-c", "pass#\0"])
669669

670670
def test_invalid_env(self):
671-
# null character in the enviroment variable name
671+
# null character in the environment variable name
672672
newenv = os.environ.copy()
673673
newenv["FRUIT\0VEGETABLE"] = "cabbage"
674674
with self.assertRaises(ValueError):
675675
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
676676

677-
# null character in the enviroment variable value
677+
# null character in the environment variable value
678678
newenv = os.environ.copy()
679679
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
680680
with self.assertRaises(ValueError):
681681
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
682682

683-
# equal character in the enviroment variable name
683+
# equal character in the environment variable name
684684
newenv = os.environ.copy()
685685
newenv["FRUIT=ORANGE"] = "lemon"
686686
with self.assertRaises(ValueError):
687687
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
688688

689-
# equal character in the enviroment variable value
689+
# equal character in the environment variable value
690690
newenv = os.environ.copy()
691691
newenv["FRUIT"] = "orange=lemon"
692692
with subprocess.Popen([sys.executable, "-c",

Lib/test/test_warnings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ def test_catch_warnings_defaults(self):
950950
self.assertIs(wmod.filters, orig_filters)
951951

952952
def test_record_override_showwarning_before(self):
953-
# Issue #28835: If warnings.showwarning() was overriden, make sure
953+
# Issue #28835: If warnings.showwarning() was overridden, make sure
954954
# that catch_warnings(record=True) overrides it again.
955955
text = "This is a warning"
956956
wmod = self.module

Lib/unittest/test/testmock/testmagicmethods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def test_magicmock(self):
255255

256256
for entry in _magics:
257257
self.assertTrue(hasattr(mock, entry))
258-
self.assertFalse(hasattr(mock, '__imaginery__'))
258+
self.assertFalse(hasattr(mock, '__imaginary__'))
259259

260260

261261
def test_magic_mock_equality(self):

0 commit comments

Comments
 (0)