Fix spelling (inital), grammar (may translates) in documentation, comments
This commit is contained in:
parent
0d88c65231
commit
8f26565ba9
|
@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach.
|
||||||
module.
|
module.
|
||||||
|
|
||||||
If ``tempdir`` is unset or ``None`` at any call to any of the above
|
If ``tempdir`` is unset or ``None`` at any call to any of the above
|
||||||
functions except :func:`gettempprefix` it is initalized following the
|
functions except :func:`gettempprefix` it is initialized following the
|
||||||
algorithm described in :func:`gettempdir`.
|
algorithm described in :func:`gettempdir`.
|
||||||
|
|
||||||
.. _tempfile-examples:
|
.. _tempfile-examples:
|
||||||
|
|
|
@ -550,7 +550,7 @@ The :mod:`test.support` module defines the following functions:
|
||||||
or passed to an external program (i.e. the ``-accept`` argument to
|
or passed to an external program (i.e. the ``-accept`` argument to
|
||||||
openssl's s_server mode). Always prefer :func:`bind_port` over
|
openssl's s_server mode). Always prefer :func:`bind_port` over
|
||||||
:func:`find_unused_port` where possible. Using a hard coded port is
|
:func:`find_unused_port` where possible. Using a hard coded port is
|
||||||
discouraged since it can makes multiple instances of the test impossible to
|
discouraged since it can make multiple instances of the test impossible to
|
||||||
run simultaneously, which is a problem for buildbots.
|
run simultaneously, which is a problem for buildbots.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
|
||||||
operators.
|
operators.
|
||||||
|
|
||||||
* Python 2.2 supports some command-line arguments for testing whether code will
|
* Python 2.2 supports some command-line arguments for testing whether code will
|
||||||
works with the changed division semantics. Running python with :option:`-Q
|
work with the changed division semantics. Running python with :option:`-Q
|
||||||
warn` will cause a warning to be issued whenever division is applied to two
|
warn` will cause a warning to be issued whenever division is applied to two
|
||||||
integers. You can use this to find code that's affected by the change and fix
|
integers. You can use this to find code that's affected by the change and fix
|
||||||
it. By default, Python 2.2 will simply perform classic division without a
|
it. By default, Python 2.2 will simply perform classic division without a
|
||||||
|
|
|
@ -133,7 +133,7 @@ class GzipFile(_compression.BaseStream):
|
||||||
a file object.
|
a file object.
|
||||||
|
|
||||||
When fileobj is not None, the filename argument is only used to be
|
When fileobj is not None, the filename argument is only used to be
|
||||||
included in the gzip file header, which may includes the original
|
included in the gzip file header, which may include the original
|
||||||
filename of the uncompressed file. It defaults to the filename of
|
filename of the uncompressed file. It defaults to the filename of
|
||||||
fileobj, if discernible; otherwise, it defaults to the empty string,
|
fileobj, if discernible; otherwise, it defaults to the empty string,
|
||||||
and in this case the original filename is not included in the header.
|
and in this case the original filename is not included in the header.
|
||||||
|
|
|
@ -900,7 +900,7 @@ class OptionContainer:
|
||||||
_short_opt : { string : Option }
|
_short_opt : { string : Option }
|
||||||
dictionary mapping short option strings, eg. "-f" or "-X",
|
dictionary mapping short option strings, eg. "-f" or "-X",
|
||||||
to the Option instances that implement them. If an Option
|
to the Option instances that implement them. If an Option
|
||||||
has multiple short option strings, it will appears in this
|
has multiple short option strings, it will appear in this
|
||||||
dictionary multiple times. [1]
|
dictionary multiple times. [1]
|
||||||
_long_opt : { string : Option }
|
_long_opt : { string : Option }
|
||||||
dictionary mapping long option strings, eg. "--file" or
|
dictionary mapping long option strings, eg. "--file" or
|
||||||
|
|
|
@ -253,7 +253,7 @@ class TestTracemallocEnabled(unittest.TestCase):
|
||||||
snapshot.dump(support.TESTFN)
|
snapshot.dump(support.TESTFN)
|
||||||
self.addCleanup(support.unlink, support.TESTFN)
|
self.addCleanup(support.unlink, support.TESTFN)
|
||||||
|
|
||||||
# load() should recreates the attribute
|
# load() should recreate the attribute
|
||||||
snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
|
snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
|
||||||
self.assertEqual(snapshot2.test_attr, "new")
|
self.assertEqual(snapshot2.test_attr, "new")
|
||||||
|
|
||||||
|
|
|
@ -23743,7 +23743,7 @@ the first class with an applicable hook wins. Makes more sense.
|
||||||
- Changed the checks made in Py_Initialize() and Py_Finalize(). It is
|
- Changed the checks made in Py_Initialize() and Py_Finalize(). It is
|
||||||
now legal to call these more than once. The first call to
|
now legal to call these more than once. The first call to
|
||||||
Py_Initialize() initializes, the first call to Py_Finalize()
|
Py_Initialize() initializes, the first call to Py_Finalize()
|
||||||
finalizes. There's also a new API, Py_IsInitalized() which checks
|
finalizes. There's also a new API, Py_IsInitialized() which checks
|
||||||
whether we are already initialized (in case you want to leave things
|
whether we are already initialized (in case you want to leave things
|
||||||
as they were).
|
as they were).
|
||||||
|
|
||||||
|
|
|
@ -5238,8 +5238,8 @@ Library
|
||||||
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
|
- Issue #19448: Add private API to SSL module to lookup ASN.1 objects by OID,
|
||||||
NID, short name and long name.
|
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.
|
||||||
patch by Claudiu Popa)
|
(Initial patch by Claudiu Popa)
|
||||||
|
|
||||||
- Issue #8311: Added support for writing any bytes-like objects in the aifc,
|
- Issue #8311: Added support for writing any bytes-like objects in the aifc,
|
||||||
sunau, and wave modules.
|
sunau, and wave modules.
|
||||||
|
@ -5333,7 +5333,7 @@ Library
|
||||||
- Issue #19227: Remove pthread_atfork() handler. The handler was added to
|
- Issue #19227: Remove pthread_atfork() handler. The handler was added to
|
||||||
solve #18747 but has caused issues.
|
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
|
_hashopenssl.c
|
||||||
|
|
||||||
- Issue #19329: Optimized compiling charsets in regular expressions.
|
- Issue #19329: Optimized compiling charsets in regular expressions.
|
||||||
|
|
|
@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state)
|
||||||
Py_DECREF(initarg);
|
Py_DECREF(initarg);
|
||||||
|
|
||||||
/* Restore the buffer state. Even if __init__ did initialize the buffer,
|
/* Restore the buffer state. Even if __init__ did initialize the buffer,
|
||||||
we have to initialize it again since __init__ may translates the
|
we have to initialize it again since __init__ may translate the
|
||||||
newlines in the inital_value string. We clearly do not want that
|
newlines in the initial_value string. We clearly do not want that
|
||||||
because the string value in the state tuple has already been translated
|
because the string value in the state tuple has already been translated
|
||||||
once by __init__. So we do not take any chance and replace object's
|
once by __init__. So we do not take any chance and replace object's
|
||||||
buffer completely. */
|
buffer completely. */
|
||||||
|
|
|
@ -3901,7 +3901,7 @@ _PyObject_GetState(PyObject *obj, int required)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The list is stored on the class so it may mutates while we
|
/* The list is stored on the class so it may mutate while we
|
||||||
iterate over it */
|
iterate over it */
|
||||||
if (slotnames_size != Py_SIZE(slotnames)) {
|
if (slotnames_size != Py_SIZE(slotnames)) {
|
||||||
PyErr_Format(PyExc_RuntimeError,
|
PyErr_Format(PyExc_RuntimeError,
|
||||||
|
@ -4035,7 +4035,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The object does not have __getnewargs_ex__ and __getnewargs__. This may
|
/* The object does not have __getnewargs_ex__ and __getnewargs__. This may
|
||||||
means __new__ does not takes any arguments on this object, or that the
|
mean __new__ does not takes any arguments on this object, or that the
|
||||||
object does not implement the reduce protocol for pickling or
|
object does not implement the reduce protocol for pickling or
|
||||||
copying. */
|
copying. */
|
||||||
*args = NULL;
|
*args = NULL;
|
||||||
|
|
|
@ -17,7 +17,7 @@ static void _testembed_Py_Initialize(void)
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************
|
/*****************************************************
|
||||||
* Test repeated initalisation and subinterpreters
|
* Test repeated initialisation and subinterpreters
|
||||||
*****************************************************/
|
*****************************************************/
|
||||||
|
|
||||||
static void print_subinterp(void)
|
static void print_subinterp(void)
|
||||||
|
|
Loading…
Reference in New Issue