diff -r 3291e6132a67 Doc/c-api/code.rst --- a/Doc/c-api/code.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/c-api/code.rst Thu Oct 08 13:22:45 2015 +0900 @@ -29,7 +29,7 @@ .. c:function:: int PyCode_Check(PyObject *co) - Return true if *co* is a :class:`code` object + Return true if *co* is a :class:`code` object. .. c:function:: int PyCode_GetNumFree(PyCodeObject *co) diff -r 3291e6132a67 Doc/c-api/gen.rst --- a/Doc/c-api/gen.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/c-api/gen.rst Thu Oct 08 13:22:45 2015 +0900 @@ -17,7 +17,7 @@ .. c:var:: PyTypeObject PyGen_Type - The type object corresponding to generator objects + The type object corresponding to generator objects. .. c:function:: int PyGen_Check(PyObject *ob) diff -r 3291e6132a67 Doc/c-api/veryhigh.rst --- a/Doc/c-api/veryhigh.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/c-api/veryhigh.rst Thu Oct 08 13:22:45 2015 +0900 @@ -201,7 +201,7 @@ .. c:function:: struct _node* PyParser_SimpleParseFile(FILE *fp, const char *filename, int start) This is a simplified interface to :c:func:`PyParser_SimpleParseFileFlags` below, - leaving *flags* set to ``0`` + leaving *flags* set to ``0``. .. c:function:: struct _node* PyParser_SimpleParseFileFlags(FILE *fp, const char *filename, int start, int flags) diff -r 3291e6132a67 Doc/distutils/apiref.rst --- a/Doc/distutils/apiref.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/distutils/apiref.rst Thu Oct 08 13:22:45 2015 +0900 @@ -928,7 +928,7 @@ Walk two filename lists in parallel, testing if each source is newer than its corresponding target. Return a pair of lists (*sources*, *targets*) where - source is newer than target, according to the semantics of :func:`newer` + source is newer than target, according to the semantics of :func:`newer`. .. % % equivalent to a listcomp... diff -r 3291e6132a67 Doc/glossary.rst --- a/Doc/glossary.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/glossary.rst Thu Oct 08 13:22:45 2015 +0900 @@ -948,7 +948,7 @@ without interfering with the behaviour of other Python applications running on the same system. - See also :ref:`scripts-pyvenv` + See also :ref:`scripts-pyvenv`. virtual machine A computer defined entirely in software. Python's virtual machine diff -r 3291e6132a67 Doc/library/2to3.rst --- a/Doc/library/2to3.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/2to3.rst Thu Oct 08 13:22:45 2015 +0900 @@ -271,7 +271,7 @@ .. 2to3fixer:: input - Converts ``input(prompt)`` to ``eval(input(prompt))`` + Converts ``input(prompt)`` to ``eval(input(prompt))``. .. 2to3fixer:: intern diff -r 3291e6132a67 Doc/library/argparse.rst --- a/Doc/library/argparse.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/argparse.rst Thu Oct 08 13:22:45 2015 +0900 @@ -2011,4 +2011,4 @@ ``%(default)s`` and ``%(prog)s``. * Replace the OptionParser constructor ``version`` argument with a call to - ``parser.add_argument('--version', action='version', version='')`` + ``parser.add_argument('--version', action='version', version='')``. diff -r 3291e6132a67 Doc/library/asyncio-protocol.rst --- a/Doc/library/asyncio-protocol.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/asyncio-protocol.rst Thu Oct 08 13:22:45 2015 +0900 @@ -232,7 +232,7 @@ .. method:: kill(self) - Kill the subprocess, as in :meth:`subprocess.Popen.kill` + Kill the subprocess, as in :meth:`subprocess.Popen.kill`. On POSIX systems, the function sends SIGKILL to the subprocess. On Windows, this method is an alias for :meth:`terminate`. diff -r 3291e6132a67 Doc/library/bdb.rst --- a/Doc/library/bdb.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/bdb.rst Thu Oct 08 13:22:45 2015 +0900 @@ -231,7 +231,7 @@ .. method:: set_until(frame) Stop when the line with the line no greater than the current one is - reached or when returning from current frame + reached or when returning from current frame. .. method:: set_trace([frame]) diff -r 3291e6132a67 Doc/library/contextlib.rst --- a/Doc/library/contextlib.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/contextlib.rst Thu Oct 08 13:22:45 2015 +0900 @@ -553,7 +553,7 @@ Due to the way the decorator protocol works, a callback function declared this way cannot take any parameters. Instead, any resources to -be released must be accessed as closure variables +be released must be accessed as closure variables. Using a context manager as a function decorator diff -r 3291e6132a67 Doc/library/decimal.rst --- a/Doc/library/decimal.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/decimal.rst Thu Oct 08 13:22:45 2015 +0900 @@ -841,7 +841,7 @@ Engineering notation has an exponent which is a multiple of 3, so there are up to 3 digits left of the decimal place. For example, converts - ``Decimal('123E+1')`` to ``Decimal('1.23E+3')`` + ``Decimal('123E+1')`` to ``Decimal('1.23E+3')``. .. method:: to_integral(rounding=None, context=None) diff -r 3291e6132a67 Doc/library/email.charset.rst --- a/Doc/library/email.charset.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/email.charset.rst Thu Oct 08 13:22:45 2015 +0900 @@ -234,5 +234,5 @@ *charset* is the canonical name of a character set. *codecname* is the name of a Python codec, as appropriate for the second argument to the :class:`str`'s - :meth:`~str.encode` method + :meth:`~str.encode` method. diff -r 3291e6132a67 Doc/library/enum.rst --- a/Doc/library/enum.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/enum.rst Thu Oct 08 13:22:45 2015 +0900 @@ -714,7 +714,7 @@ class, such as `list(Color)` or `some_var in Color`. :class:`EnumMeta` is responsible for ensuring that various other methods on the final :class:`Enum` class are correct (such as :meth:`__new__`, :meth:`__getnewargs__`, -:meth:`__str__` and :meth:`__repr__`) +:meth:`__str__` and :meth:`__repr__`). Enum Members (aka instances) diff -r 3291e6132a67 Doc/library/exceptions.rst --- a/Doc/library/exceptions.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/exceptions.rst Thu Oct 08 13:22:45 2015 +0900 @@ -635,7 +635,7 @@ .. exception:: SyntaxWarning - Base class for warnings about dubious syntax + Base class for warnings about dubious syntax. .. exception:: RuntimeWarning diff -r 3291e6132a67 Doc/library/fractions.rst --- a/Doc/library/fractions.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/fractions.rst Thu Oct 08 13:22:45 2015 +0900 @@ -97,7 +97,7 @@ This class method constructs a :class:`Fraction` representing the exact value of *flt*, which must be a :class:`float`. Beware that - ``Fraction.from_float(0.3)`` is not the same value as ``Fraction(3, 10)`` + ``Fraction.from_float(0.3)`` is not the same value as ``Fraction(3, 10)``. .. note:: diff -r 3291e6132a67 Doc/library/http.cookiejar.rst --- a/Doc/library/http.cookiejar.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/http.cookiejar.rst Thu Oct 08 13:22:45 2015 +0900 @@ -540,7 +540,7 @@ .. attribute:: DefaultCookiePolicy.strict_ns_unverifiable - apply RFC 2965 rules on unverifiable transactions even to Netscape cookies + Apply RFC 2965 rules on unverifiable transactions even to Netscape cookies. .. attribute:: DefaultCookiePolicy.strict_ns_domain diff -r 3291e6132a67 Doc/library/http.cookies.rst --- a/Doc/library/http.cookies.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/http.cookies.rst Thu Oct 08 13:22:45 2015 +0900 @@ -84,7 +84,7 @@ Return an encoded value. *val* can be any type, but return value must be a string. This method does nothing in :class:`BaseCookie` --- it exists so it can - be overridden + be overridden. In general, it should be the case that :meth:`value_encode` and :meth:`value_decode` are inverses on the range of *value_decode*. diff -r 3291e6132a67 Doc/library/importlib.rst --- a/Doc/library/importlib.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/importlib.rst Thu Oct 08 13:22:45 2015 +0900 @@ -747,7 +747,7 @@ modules recognized by the standard import machinery. This is a helper for code which simply needs to know if a filesystem path potentially refers to a module without needing any details on the kind - of module (for example, :func:`inspect.getmodulename`) + of module (for example, :func:`inspect.getmodulename`). .. versionadded:: 3.3 diff -r 3291e6132a67 Doc/library/json.rst --- a/Doc/library/json.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/json.rst Thu Oct 08 13:22:45 2015 +0900 @@ -339,7 +339,7 @@ .. method:: decode(s) Return the Python representation of *s* (a :class:`str` instance - containing a JSON document) + containing a JSON document). :exc:`JSONDecodeError` will be raised if the given JSON document is not valid. diff -r 3291e6132a67 Doc/library/locale.rst --- a/Doc/library/locale.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/locale.rst Thu Oct 08 13:22:45 2015 +0900 @@ -204,7 +204,7 @@ .. data:: RADIXCHAR - Get the radix character (decimal dot, decimal comma, etc.) + Get the radix character (decimal dot, decimal comma, etc.). .. data:: THOUSEP diff -r 3291e6132a67 Doc/library/logging.handlers.rst --- a/Doc/library/logging.handlers.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/logging.handlers.rst Thu Oct 08 13:22:45 2015 +0900 @@ -238,7 +238,7 @@ renamed to the destination. :param source: The source filename. This is normally the base - filename, e.g. 'test.log' + filename, e.g. 'test.log'. :param dest: The destination filename. This is normally what the source is rotated to, e.g. 'test.log.1'. diff -r 3291e6132a67 Doc/library/modulefinder.rst --- a/Doc/library/modulefinder.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/modulefinder.rst Thu Oct 08 13:22:45 2015 +0900 @@ -53,7 +53,7 @@ .. attribute:: modules A dictionary mapping module names to modules. See - :ref:`modulefinder-example` + :ref:`modulefinder-example`. .. _modulefinder-example: diff -r 3291e6132a67 Doc/library/msvcrt.rst --- a/Doc/library/msvcrt.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/msvcrt.rst Thu Oct 08 13:22:45 2015 +0900 @@ -18,7 +18,7 @@ The module implements both the normal and wide char variants of the console I/O api. The normal API deals only with ASCII characters and is of limited use for internationalized applications. The wide char API should be used where -ever possible +ever possible. .. versionchanged:: 3.3 Operations in this module now raise :exc:`OSError` where :exc:`IOError` diff -r 3291e6132a67 Doc/library/multiprocessing.rst --- a/Doc/library/multiprocessing.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/multiprocessing.rst Thu Oct 08 13:22:45 2015 +0900 @@ -1944,7 +1944,7 @@ raised by :meth:`_callmethod`. Note in particular that an exception will be raised if *methodname* has - not been *exposed* + not been *exposed*. An example of the usage of :meth:`_callmethod`: @@ -2050,7 +2050,7 @@ If *callback* is specified then it should be a callable which accepts a single argument. When the result becomes ready *callback* is applied to it, that is unless the call failed, in which case the *error_callback* - is applied instead + is applied instead. If *error_callback* is specified then it should be a callable which accepts a single argument. If the target function fails, then @@ -2075,7 +2075,7 @@ If *callback* is specified then it should be a callable which accepts a single argument. When the result becomes ready *callback* is applied to it, that is unless the call failed, in which case the *error_callback* - is applied instead + is applied instead. If *error_callback* is specified then it should be a callable which accepts a single argument. If the target function fails, then diff -r 3291e6132a67 Doc/library/pickle.rst --- a/Doc/library/pickle.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/pickle.rst Thu Oct 08 13:22:45 2015 +0900 @@ -235,7 +235,7 @@ .. function:: loads(bytes_object, \*, fix_imports=True, encoding="ASCII", errors="strict") Read a pickled object hierarchy from a :class:`bytes` object and return the - reconstituted object hierarchy specified therein + reconstituted object hierarchy specified therein. The protocol version of the pickle is detected automatically, so no protocol argument is needed. Bytes past the pickled object's diff -r 3291e6132a67 Doc/library/platform.rst --- a/Doc/library/platform.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/platform.rst Thu Oct 08 13:22:45 2015 +0900 @@ -117,7 +117,7 @@ .. function:: python_version() - Returns the Python version as string ``'major.minor.patchlevel'`` + Returns the Python version as string ``'major.minor.patchlevel'``. Note that unlike the Python ``sys.version``, the returned value will always include the patchlevel (it defaults to 0). diff -r 3291e6132a67 Doc/library/plistlib.rst --- a/Doc/library/plistlib.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/plistlib.rst Thu Oct 08 13:22:45 2015 +0900 @@ -194,7 +194,7 @@ It has one attribute, :attr:`data`, that can be used to retrieve the Python bytes object stored in it. - .. deprecated:: 3.4 Use a :class:`bytes` object instead + .. deprecated:: 3.4 Use a :class:`bytes` object instead. The following constants are available: diff -r 3291e6132a67 Doc/library/shutil.rst --- a/Doc/library/shutil.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/shutil.rst Thu Oct 08 13:22:45 2015 +0900 @@ -497,7 +497,7 @@ .. function:: get_archive_formats() Return a list of supported formats for archiving. - Each element of the returned sequence is a tuple ``(name, description)`` + Each element of the returned sequence is a tuple ``(name, description)``. By default :mod:`shutil` provides these formats: diff -r 3291e6132a67 Doc/library/sys.rst --- a/Doc/library/sys.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/sys.rst Thu Oct 08 13:22:45 2015 +0900 @@ -641,7 +641,7 @@ :term:`struct sequence` :data:`sys.version_info` may be used for a more human-friendly encoding of the same information. - More details of ``hexversion`` can be found at :ref:`apiabiversion` + More details of ``hexversion`` can be found at :ref:`apiabiversion`. .. data:: implementation diff -r 3291e6132a67 Doc/library/tkinter.ttk.rst --- a/Doc/library/tkinter.ttk.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/tkinter.ttk.rst Thu Oct 08 13:22:45 2015 +0900 @@ -110,8 +110,9 @@ | class | Specifies the window class. The class is used when querying | | | the option database for the window's other options, to | | | determine the default bindtags for the window, and to select | - | | the widget's default layout and style. This is a read-only | - | | which may only be specified when the window is created | + | | the widget's default layout and style. This option is | + | | read-only, and may only be specified when the window is | + | | created. | +-----------+--------------------------------------------------------------+ | cursor | Specifies the mouse cursor to be used for the widget. If set | | | to the empty string (the default), the cursor is inherited | diff -r 3291e6132a67 Doc/library/urllib.request.rst --- a/Doc/library/urllib.request.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/urllib.request.rst Thu Oct 08 13:22:45 2015 +0900 @@ -202,7 +202,7 @@ ``"Python-urllib/2.6"`` (on Python 2.6). An example of using ``Content-Type`` header with *data* argument would be - sending a dictionary like ``{"Content-Type":" application/x-www-form-urlencoded;charset=utf-8"}`` + sending a dictionary like ``{"Content-Type":" application/x-www-form-urlencoded;charset=utf-8"}``. The final two arguments are only of interest for correct handling of third-party HTTP cookies: diff -r 3291e6132a67 Doc/library/wsgiref.rst --- a/Doc/library/wsgiref.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/wsgiref.rst Thu Oct 08 13:22:45 2015 +0900 @@ -506,7 +506,7 @@ Similar to :class:`BaseCGIHandler`, but designed for use with HTTP origin servers. If you are writing an HTTP server implementation, you will probably - want to subclass this instead of :class:`BaseCGIHandler` + want to subclass this instead of :class:`BaseCGIHandler`. This class is a subclass of :class:`BaseHandler`. It overrides the :meth:`__init__`, :meth:`get_stdin`, :meth:`get_stderr`, :meth:`add_cgi_vars`, diff -r 3291e6132a67 Doc/library/xml.dom.minidom.rst --- a/Doc/library/xml.dom.minidom.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/xml.dom.minidom.rst Thu Oct 08 13:22:45 2015 +0900 @@ -15,7 +15,7 @@ Model interface, with an API similar to that in other languages. It is intended to be simpler than the full DOM and also significantly smaller. Users who are not already proficient with the DOM should consider using the -:mod:`xml.etree.ElementTree` module for their XML processing instead +:mod:`xml.etree.ElementTree` module for their XML processing instead. .. warning:: diff -r 3291e6132a67 Doc/library/xml.dom.rst --- a/Doc/library/xml.dom.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/xml.dom.rst Thu Oct 08 13:22:45 2015 +0900 @@ -304,7 +304,7 @@ .. attribute:: Node.prefix The part of the :attr:`tagName` preceding the colon if there is one, else the - empty string. The value is a string, or ``None`` + empty string. The value is a string, or ``None``. .. attribute:: Node.namespaceURI diff -r 3291e6132a67 Doc/library/xml.etree.elementtree.rst --- a/Doc/library/xml.etree.elementtree.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/library/xml.etree.elementtree.rst Thu Oct 08 13:22:45 2015 +0900 @@ -891,7 +891,7 @@ Creates and returns a tree iterator for the root element. The iterator loops over all elements in this tree, in section order. *tag* is the tag - to look for (default is to return all elements) + to look for (default is to return all elements). .. method:: iterfind(match, namespaces=None) diff -r 3291e6132a67 Doc/reference/datamodel.rst --- a/Doc/reference/datamodel.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/reference/datamodel.rst Thu Oct 08 13:22:45 2015 +0900 @@ -1320,7 +1320,7 @@ object's :meth:`__hash__` must interoperate on builds of different bit sizes, be sure to check the width on all supported builds. An easy way to do this is with - ``python -c "import sys; print(sys.hash_info.width)"`` + ``python -c "import sys; print(sys.hash_info.width)"``. If a class does not define an :meth:`__eq__` method it should not define a :meth:`__hash__` operation either; if it defines :meth:`__eq__` but not diff -r 3291e6132a67 Doc/reference/expressions.rst --- a/Doc/reference/expressions.rst Wed Oct 07 11:15:15 2015 +0000 +++ b/Doc/reference/expressions.rst Thu Oct 08 13:22:45 2015 +0900 @@ -371,7 +371,7 @@ (by returning a value from the sub-generator). .. versionchanged:: 3.3 - Added ``yield from `` to delegate control flow to a subiterator + Added ``yield from `` to delegate control flow to a subiterator. The parentheses may be omitted when the yield expression is the sole expression on the right hand side of an assignment statement.