mirror of https://github.com/python/cpython
merge heads
This commit is contained in:
commit
b548d49f65
|
@ -414,7 +414,7 @@ References
|
|||
----------
|
||||
|
||||
The ``str`` type is described in the Python library reference at
|
||||
:ref:`typesseq`.
|
||||
:ref:`textseq`.
|
||||
|
||||
The documentation for the :mod:`unicodedata` module.
|
||||
|
||||
|
|
|
@ -275,8 +275,8 @@ The following exceptions are the exceptions that are usually raised.
|
|||
.. exception:: StopIteration
|
||||
|
||||
Raised by built-in function :func:`next` and an :term:`iterator`\'s
|
||||
:meth:`__next__` method to signal that there are no further items to be
|
||||
produced by the iterator.
|
||||
:meth:`~iterator.__next__` method to signal that there are no further
|
||||
items produced by the iterator.
|
||||
|
||||
The exception object has a single attribute :attr:`value`, which is
|
||||
given as an argument when constructing the exception, and defaults
|
||||
|
|
|
@ -1358,8 +1358,8 @@ Text Sequence Type --- :class:`str`
|
|||
object: io.StringIO
|
||||
|
||||
|
||||
Textual data in Python is handled with :class:`str` objects, which are
|
||||
immutable sequences of Unicode code points. String literals are
|
||||
Textual data in Python is handled with ``str`` objects, which are immutable
|
||||
:ref:`sequences <typesseq>` of Unicode code points. String literals are
|
||||
written in a variety of ways:
|
||||
|
||||
* Single quotes: ``'allows embedded "double" quotes'``
|
||||
|
@ -1377,8 +1377,8 @@ See :ref:`strings` for more about the various forms of string literal,
|
|||
including supported escape sequences, and the ``r`` ("raw") prefix that
|
||||
disables most escape sequence processing.
|
||||
|
||||
Strings may also be created from other objects with the :ref:`str <func-str>`
|
||||
built-in.
|
||||
Strings may also be created from other objects with the built-in
|
||||
function :func:`str`.
|
||||
|
||||
Since there is no separate "character" type, indexing a string produces
|
||||
strings of length 1. That is, for a non-empty string *s*, ``s[0] == s[0:1]``.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
.. seealso::
|
||||
|
||||
:ref:`typesseq`
|
||||
:ref:`textseq`
|
||||
|
||||
:ref:`string-methods`
|
||||
|
||||
|
|
|
@ -390,7 +390,7 @@ The built-in function :func:`len` returns the length of a string::
|
|||
|
||||
.. seealso::
|
||||
|
||||
:ref:`typesseq`
|
||||
:ref:`textseq`
|
||||
Strings are examples of *sequence types*, and support the common
|
||||
operations supported by such types.
|
||||
|
||||
|
|
|
@ -41,6 +41,8 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #16176: Properly identify Windows 8 via platform.platform()
|
||||
|
||||
- Issue #16114: The subprocess module no longer provides a misleading error
|
||||
message stating that args[0] did not exist when either the cwd or executable
|
||||
keyword arguments specified a path that did not exist.
|
||||
|
|
Loading…
Reference in New Issue