:class:`~collections.namedtuple` of the form `(firstiter, finalizer)`,
where *firstiter* and *finalizer* are expected to be either ``None`` or
functions which take an :term:`asynchronous generator iterator` as an
- argument, and are used to schedule finalization of an asychronous
+ argument, and are used to schedule finalization of an asynchronous
generator by an event loop.
.. versionadded:: 3.6
format to a Python dictionary ("kwargs" dict).
The type of kwnames keys is not checked. The final function getting
- arguments is reponsible to check if all keys are strings, for example using
+ arguments is responsible to check if all keys are strings, for example using
PyArg_ParseTupleAndKeywords() or PyArg_ValidateKeywordArguments().
Duplicate keys are merged using the last value. If duplicate keys must raise
/* Encodes a Unicode object and returns the result as Python
object.
- This API is DEPRECATED. It is superceeded by PyUnicode_AsEncodedString()
+ This API is DEPRECATED. It is superseded by PyUnicode_AsEncodedString()
since all standard encodings (except rot13) encode str to bytes.
Use PyCodec_Encode() for encoding with rot13 and non-standard codecs
that encode form str to non-bytes. */
not_covered = value
negative = value < 0
# issue29167: wrap accesses to _value2member_map_ in a list to avoid race
- # conditions between iterating over it and having more psuedo-
+ # conditions between iterating over it and having more pseudo-
# members added to it
if negative:
# only check for named flags
which are boolean, and can be toggled with a True/False button.
Methods:
- load_extentions:
+ load_extensions:
extension_selected: Handle selection from list.
create_extension_frame: Hold widgets for one extension.
set_extension_value: Set in userCfg['extensions'].
dddiv1057 divide -1e-277 1e+311 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped\r
dddiv1058 divide -1e-277 -1e+311 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dddiv1060 divide 1e-291 1e+101 -> 1E-392 Subnormal\r
dddiv1061 divide 1e-291 1e+102 -> 1E-393 Subnormal\r
dddiv1062 divide 1e-291 1e+103 -> 1E-394 Subnormal\r
dddvi1057 divideint -1e-277 1e+311 -> -0\r
dddvi1058 divideint -1e-277 -1e+311 -> 0\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dddvi1060 divideint 1e-291 1e+101 -> 0\r
dddvi1061 divideint 1e-291 1e+102 -> 0\r
dddvi1062 divideint 1e-291 1e+103 -> 0\r
clamp: 1\r
rounding: half_even\r
\r
--- These tests comprese three parts:\r
+-- These tests comprise three parts:\r
-- 1. Sanity checks and other three-operand tests (especially those\r
-- where the fused operation makes a difference)\r
-- 2. Multiply tests (third operand is neutral zero [0E+emax])\r
ddfma2757 fma -1e-277 1e-311 0e+384 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped\r
ddfma2758 fma -1e-277 -1e-311 0e+384 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
ddfma2760 fma 1e-291 1e-101 0e+384 -> 1E-392 Subnormal\r
ddfma2761 fma 1e-291 1e-102 0e+384 -> 1E-393 Subnormal\r
ddfma2762 fma 1e-291 1e-103 0e+384 -> 1E-394 Subnormal\r
ddmul757 multiply -1e-277 1e-311 -> -0E-398 Underflow Subnormal Inexact Rounded Clamped\r
ddmul758 multiply -1e-277 -1e-311 -> 0E-398 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
ddmul760 multiply 1e-291 1e-101 -> 1E-392 Subnormal\r
ddmul761 multiply 1e-291 1e-102 -> 1E-393 Subnormal\r
ddmul762 multiply 1e-291 1e-103 -> 1E-394 Subnormal\r
-- overflow and underflow (additional edge tests in multiply.decTest)
-- 'subnormal' results now possible (all hard underflow or overflow in
--- base arithemtic)
+-- base arithmetic)
divx960 divide 1e-600000000 1e+400000001 -> 1E-1000000001 Subnormal
divx961 divide 1e-600000000 1e+400000002 -> 1E-1000000002 Subnormal
divx962 divide 1e-600000000 1e+400000003 -> 1E-1000000003 Subnormal
dqdiv1757 divide -1e-4277 1e+3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
dqdiv1758 divide -1e-4277 -1e+3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dqdiv1760 divide 1e-6069 1e+101 -> 1E-6170 Subnormal\r
dqdiv1761 divide 1e-6069 1e+102 -> 1E-6171 Subnormal\r
dqdiv1762 divide 1e-6069 1e+103 -> 1E-6172 Subnormal\r
dqdvi1057 divideint -1e-277 1e+311 -> -0\r
dqdvi1058 divideint -1e-277 -1e+311 -> 0\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dqdvi1060 divideint 1e-291 1e+101 -> 0\r
dqdvi1061 divideint 1e-291 1e+102 -> 0\r
dqdvi1062 divideint 1e-291 1e+103 -> 0\r
minExponent: -6143\r
rounding: half_even\r
\r
--- These tests comprese three parts:\r
+-- These tests comprise three parts:\r
-- 1. Sanity checks and other three-operand tests (especially those\r
-- where the fused operation makes a difference)\r
-- 2. Multiply tests (third operand is neutral zero [0E+emax])\r
dqfma2757 fma -1e-4277 1e-3311 0e+6144 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
dqfma2758 fma -1e-4277 -1e-3311 0e+6144 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dqfma2760 fma 1e-6069 1e-101 0e+6144 -> 1E-6170 Subnormal\r
dqfma2761 fma 1e-6069 1e-102 0e+6144 -> 1E-6171 Subnormal\r
dqfma2762 fma 1e-6069 1e-103 0e+6144 -> 1E-6172 Subnormal\r
dqmul757 multiply -1e-4277 1e-3311 -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
dqmul758 multiply -1e-4277 -1e-3311 -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
dqmul760 multiply 1e-6069 1e-101 -> 1E-6170 Subnormal\r
dqmul761 multiply 1e-6069 1e-102 -> 1E-6171 Subnormal\r
dqmul762 multiply 1e-6069 1e-103 -> 1E-6172 Subnormal\r
maxExponent: 384\r
minexponent: -383\r
\r
--- These tests comprese three parts:\r
+-- These tests comprise three parts:\r
-- 1. Sanity checks and other three-operand tests (especially those\r
-- where the fused operation makes a difference)\r
-- 2. Multiply tests (third operand is neutral zero [0E+emax])\r
fmax2757 fma -1e-777777 1e-411111 0E+999999 -> -0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r
fmax2758 fma -1e-777777 -1e-411111 0E+999999 -> 0E-1000007 Underflow Subnormal Inexact Rounded Clamped\r
\r
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)\r
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)\r
precision: 9\r
fmax2760 fma 1e-600000 1e-400001 0E+999999 -> 1E-1000001 Subnormal\r
fmax2761 fma 1e-600000 1e-400002 0E+999999 -> 1E-1000002 Subnormal\r
mulx757 multiply -1e-777777777 1e-411111111 -> -0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
mulx758 multiply -1e-777777777 -1e-411111111 -> 0E-1000000007 Underflow Subnormal Inexact Rounded Clamped
--- 'subnormal' boundary (all hard underflow or overflow in base arithemtic)
+-- 'subnormal' boundary (all hard underflow or overflow in base arithmetic)
precision: 9
mulx760 multiply 1e-600000000 1e-400000001 -> 1E-1000000001 Subnormal
mulx761 multiply 1e-600000000 1e-400000002 -> 1E-1000000002 Subnormal
return 0
def isRat(x):
- """Test wheter an object is an instance of the Rat class."""
+ """Test whether an object is an instance of the Rat class."""
return isinstance(x, Rat)
class Rat(object):
self.assertEqual(mock_int.__hash__.call_count, 2)
self.assertEqual(f.cache_info(), (1, 1, 1, 1))
- # Cache eviction: No use as an argument gives no additonal call
+ # Cache eviction: No use as an argument gives no additional call
self.assertEqual(f(6, 2), 20)
self.assertEqual(mock_int.__hash__.call_count, 2)
self.assertEqual(f.cache_info(), (1, 2, 1, 1))
class Using__package__:
- """Use of __package__ supercedes the use of __name__/__path__ to calculate
+ """Use of __package__ supersedes the use of __name__/__path__ to calculate
what package a module belongs to. The basic algorithm is [__package__]::
def resolve_name(name, package, level):
def test_execve_invalid_env(self):
args = [sys.executable, '-c', 'pass']
- # null character in the enviroment variable name
+ # null character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT\0VEGETABLE"] = "cabbage"
with self.assertRaises(ValueError):
os.execve(args[0], args, newenv)
- # null character in the enviroment variable value
+ # null character in the environment variable value
newenv = os.environ.copy()
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
with self.assertRaises(ValueError):
os.execve(args[0], args, newenv)
- # equal character in the enviroment variable name
+ # equal character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT=ORANGE"] = "lemon"
with self.assertRaises(ValueError):
def _test_invalid_env(self, spawn):
args = [sys.executable, '-c', 'pass']
- # null character in the enviroment variable name
+ # null character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT\0VEGETABLE"] = "cabbage"
try:
else:
self.assertEqual(exitcode, 127)
- # null character in the enviroment variable value
+ # null character in the environment variable value
newenv = os.environ.copy()
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
try:
else:
self.assertEqual(exitcode, 127)
- # equal character in the enviroment variable name
+ # equal character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT=ORANGE"] = "lemon"
try:
else:
self.assertEqual(exitcode, 127)
- # equal character in the enviroment variable value
+ # equal character in the environment variable value
filename = support.TESTFN
self.addCleanup(support.unlink, filename)
with open(filename, "w") as fp:
subprocess.Popen([sys.executable, "-c", "pass#\0"])
def test_invalid_env(self):
- # null character in the enviroment variable name
+ # null character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT\0VEGETABLE"] = "cabbage"
with self.assertRaises(ValueError):
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
- # null character in the enviroment variable value
+ # null character in the environment variable value
newenv = os.environ.copy()
newenv["FRUIT"] = "orange\0VEGETABLE=cabbage"
with self.assertRaises(ValueError):
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
- # equal character in the enviroment variable name
+ # equal character in the environment variable name
newenv = os.environ.copy()
newenv["FRUIT=ORANGE"] = "lemon"
with self.assertRaises(ValueError):
subprocess.Popen([sys.executable, "-c", "pass"], env=newenv)
- # equal character in the enviroment variable value
+ # equal character in the environment variable value
newenv = os.environ.copy()
newenv["FRUIT"] = "orange=lemon"
with subprocess.Popen([sys.executable, "-c",
self.assertIs(wmod.filters, orig_filters)
def test_record_override_showwarning_before(self):
- # Issue #28835: If warnings.showwarning() was overriden, make sure
+ # Issue #28835: If warnings.showwarning() was overridden, make sure
# that catch_warnings(record=True) overrides it again.
text = "This is a warning"
wmod = self.module
for entry in _magics:
self.assertTrue(hasattr(mock, entry))
- self.assertFalse(hasattr(mock, '__imaginery__'))
+ self.assertFalse(hasattr(mock, '__imaginary__'))
def test_magic_mock_equality(self):
negative values the same way for keyword arguments as it does for
positional arguments.
-- Issue #21812: turtle.shapetransform did not tranform the turtle on the
+- Issue #21812: turtle.shapetransform did not transform the turtle on the
first call. (Issue identified and fixed by Lita Cho.)
- Issue #21635: The difflib SequenceMatcher.get_matching_blocks() method
- Issue #19466: Clear the frames of daemon threads earlier during the
Python shutdown to call objects destructors. So "unclosed file" resource
- warnings are now corretly emitted for daemon threads.
+ warnings are now correctly emitted for daemon threads.
- Issue #19514: Deduplicate some _Py_IDENTIFIER declarations.
Patch by Andrei Dorian Duma.
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
NID, short name and long name.
-- Issue #19282: dbm.open now supports the context management protocol. (Inital
+- Issue #19282: dbm.open now supports the context management protocol. (Initial
patch by Claudiu Popa)
- Issue #8311: Added support for writing any bytes-like objects in the aifc,
- Issue #19227: Remove pthread_atfork() handler. The handler was added to
solve #18747 but has caused issues.
-- Issue #19420: Fix reference leak in module initalization code of
+- Issue #19420: Fix reference leak in module initialization code of
_hashopenssl.c
- Issue #19329: Optimized compiling charsets in regular expressions.
- Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes
inside subjectAltName correctly. Formerly the module has used OpenSSL's
- GENERAL_NAME_print() function to get the string represention of ASN.1
+ GENERAL_NAME_print() function to get the string representation of ASN.1
strings for ``rfc822Name`` (email), ``dNSName`` (DNS) and
``uniformResourceIdentifier`` (URI).
Documentation
-------------
-- Issue #18743: Fix references to non-existant "StringIO" module.
+- Issue #18743: Fix references to non-existent "StringIO" module.
- Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
Thomas Barlow.
- Issue #17358: Modules loaded by imp.load_source() and load_compiled() (and by
- extention load_module()) now have a better chance of working when reloaded.
+ extension load_module()) now have a better chance of working when reloaded.
- Issue #17804: New function ``struct.iter_unpack`` allows for streaming
struct unpacking.
error message has been removed. Patch by Ram Rachum.
- Issue #18080: When building a C extension module on OS X, if the compiler
- is overriden with the CC environment variable, use the new compiler as
- the default for linking if LDSHARED is not also overriden. This restores
+ is overridden with the CC environment variable, use the new compiler as
+ the default for linking if LDSHARED is not also overridden. This restores
Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0.
- Issue #18113: Fixed a refcount leak in the curses.panel module's
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
-- Issue #8862: Fixed curses cleanup when getkey is interrputed by a signal.
+- Issue #8862: Fixed curses cleanup when getkey is interrupted by a signal.
- Issue #17443: imaplib.IMAP4_stream was using the default unbuffered IO
in subprocess, but the imap code assumes buffered IO. In Python2 this
internal XML encoding is not UTF-8 or US-ASCII. It also now accepts bytes
and strings larger than 2 GiB.
-- Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
+- Issue #6083: Fix multiple segmentation faults occurred when PyArg_ParseTuple
parses nested mutating sequence.
- Issue #5289: Fix ctypes.util.find_library on Solaris.
filecmp - supersedes the old cmp.py and dircmp.py modules.
-tabnanny - check Python sources for tab-width dependance. (Moved from
+tabnanny - check Python sources for tab-width dependence. (Moved from
Tools/scripts/.)
urllib2 - new and improved but incompatible version of urllib (still
Rodola'.
- bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader in
- non-blocking mode if it succeeded to aquire the lock but the acquire took
+ non-blocking mode if it succeeded to acquire the lock but the acquire took
longer than the timeout.
- bpo-28556: Updates to typing module: Add generic AsyncContextManager, add
re.sub() replacement templates regular expressions now are errors.
- Issue #28835: Fix a regression introduced in warnings.catch_warnings():
- call warnings.showwarning() if it was overriden inside the context manager.
+ call warnings.showwarning() if it was overridden inside the context manager.
- Issue #27172: To assist with upgrades from 2.7, the previously documented
deprecation of ``inspect.getfullargspec()`` has been reversed. This decision
again. But they still are deprecated and will be disabled in 3.7.
- Issue #28835: Fix a regression introduced in warnings.catch_warnings():
- call warnings.showwarning() if it was overriden inside the context manager.
+ call warnings.showwarning() if it was overridden inside the context manager.
- Issue #27172: To assist with upgrades from 2.7, the previously documented
deprecation of ``inspect.getfullargspec()`` has been reversed. This decision
*/
if (ob == NULL)
goto error;
- /* The .from_param call that will ocurr later will pass this
+ /* The .from_param call that will occur later will pass this
as a byref parameter. */
PyTuple_SET_ITEM(callargs, i, ob);
*poutmask |= (1 << i); /* mark as out arg */
"be FORMAT_XZ (default), FORMAT_ALONE, or FORMAT_RAW.\n"
"\n"
"check specifies the integrity check to use. For FORMAT_XZ, the default\n"
-"is CHECK_CRC64. FORMAT_ALONE and FORMAT_RAW do not suport integrity\n"
+"is CHECK_CRC64. FORMAT_ALONE and FORMAT_RAW do not support integrity\n"
"checks; for these formats, check must be omitted, or be CHECK_NONE.\n"
"\n"
"The settings used by the compressor can be specified either as a\n"
}
else if (is_buffer) {
/* XXX Replace PyObject_CheckBuffer with PyBytes_Check in other code
- after removing suport of non-bytes buffer objects. */
+ after removing support of non-bytes buffer objects. */
if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
"%s%s%s should be %s, not %.200s",
path->function_name ? path->function_name : "",
^- (-oparg-1)
^- (-oparg-2)
- `callable` will be POPed by call_funtion.
+ `callable` will be POPed by call_function.
NULL will will be POPed manually later.
*/
res = call_function(&sp, oparg, NULL);