Merge doc and comment fixes from 3.5

This commit is contained in:
Martin Panter 2016-04-19 23:23:16 +00:00
commit abe4d52a1a
11 changed files with 15 additions and 15 deletions

View File

@ -256,7 +256,7 @@ to specify the directory and this is the recommend approach.
module.
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`.
.. _tempfile-examples:

View File

@ -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
openssl's s_server mode). Always prefer :func:`bind_port` over
: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.

View File

@ -758,7 +758,7 @@ Here are the changes 2.2 introduces:
operators.
* 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
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

View File

@ -133,7 +133,7 @@ class GzipFile(_compression.BaseStream):
a file object.
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
fileobj, if discernible; otherwise, it defaults to the empty string,
and in this case the original filename is not included in the header.

View File

@ -901,7 +901,7 @@ class OptionContainer:
_short_opt : { string : Option }
dictionary mapping short option strings, eg. "-f" or "-X",
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]
_long_opt : { string : Option }
dictionary mapping long option strings, eg. "--file" or

View File

@ -261,7 +261,7 @@ class TestTracemallocEnabled(unittest.TestCase):
snapshot.dump(support.TESTFN)
self.addCleanup(support.unlink, support.TESTFN)
# load() should recreates the attribute
# load() should recreate the attribute
snapshot2 = tracemalloc.Snapshot.load(support.TESTFN)
self.assertEqual(snapshot2.test_attr, "new")

View File

@ -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
now legal to call these more than once. The first call to
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
as they were).

View File

@ -5851,8 +5851,8 @@ Library
- 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
patch by Claudiu Popa)
- 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,
sunau, and wave modules.
@ -5946,7 +5946,7 @@ Library
- 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.

View File

@ -913,8 +913,8 @@ stringio_setstate(stringio *self, PyObject *state)
Py_DECREF(initarg);
/* Restore the buffer state. Even if __init__ did initialize the buffer,
we have to initialize it again since __init__ may translates the
newlines in the inital_value string. We clearly do not want that
we have to initialize it again since __init__ may translate the
newlines in the initial_value string. We clearly do not want that
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
buffer completely. */

View File

@ -3925,7 +3925,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 */
if (slotnames_size != Py_SIZE(slotnames)) {
PyErr_Format(PyExc_RuntimeError,
@ -4059,7 +4059,7 @@ _PyObject_GetNewArguments(PyObject *obj, PyObject **args, PyObject **kwargs)
}
/* 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
copying. */
*args = NULL;

View File

@ -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)