| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -573,9 +573,9 @@ Lib/shutil.py @giampaolo | |||
| 573 | 573 | Lib/test/test_shutil.py @giampaolo | |
| 574 | 574 | ||
| 575 | 575 | # Site | |
| 576 | - Lib/site.py @FFY00 | ||
| 577 | - Lib/test/test_site.py @FFY00 | ||
| 578 | - Doc/library/site.rst @FFY00 | ||
| 576 | + Lib/site.py @FFY00 @warsaw | ||
| 577 | + Lib/test/test_site.py @FFY00 @warsaw | ||
| 578 | + Doc/library/site.rst @FFY00 @warsaw | ||
| 579 | 579 | ||
| 580 | 580 | # string.templatelib | |
| 581 | 581 | Doc/library/string.templatelib.rst @lysnikolaou @AA-Turner | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,10 +7,10 @@ Definition slots | |||
| 7 | 7 | ||
| 8 | 8 | To define :ref:`module objects <moduleobjects>` and | |
| 9 | 9 | :ref:`classes <creating-heap-types>` using the C API, you may use | |
| 10 | - an array of *slots* -- essentally, key-value pairs that describe features | ||
| 10 | + an array of *slots* -- essentially, key-value pairs that describe features | ||
| 11 | 11 | of the object to create. | |
| 12 | 12 | This decouples the data from the structures used at runtime, allowing CPython | |
| 13 | - -- and other Python C API implementations -- to update the stuctures without | ||
| 13 | + -- and other Python C API implementations -- to update the structures without | ||
| 14 | 14 | breaking backwards compatibility. | |
| 15 | 15 | ||
| 16 | 16 | This section documents slots in general. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,7 +114,7 @@ versions of Python. | |||
| 114 | 114 | ||
| 115 | 115 | All functions in Stable ABI are present as functions in Python's shared | |
| 116 | 116 | library, not solely as macros. | |
| 117 | - This makes them usable are usable from languages that don't use the C | ||
| 117 | + This makes them usable in languages that don't use the C | ||
| 118 | 118 | preprocessor, including Python's :py:mod:`ctypes`. | |
| 119 | 119 | ||
| 120 | 120 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -238,7 +238,7 @@ are not available. | |||
| 238 | 238 | .. c:function:: void PyCriticalSection_BeginMutex(PyCriticalSection *c, PyMutex *m); | |
| 239 | 239 | void PyCriticalSection2_BeginMutex(PyCriticalSection2 *c, PyMutex *m1, PyMutex *m2); | |
| 240 | 240 | ||
| 241 | - .. (These need to be in a separate section without a Stable ABI anotation.) | ||
| 241 | + .. (These need to be in a separate section without a Stable ABI annotation.) | ||
| 242 | 242 | ||
| 243 | 243 | To be used only as in the macro expansions | |
| 244 | 244 | listed :ref:`earlier in this section <critical-section-macros>`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -762,7 +762,7 @@ APIs: | |||
| 762 | 762 | The string must not have been “used” yet. | |
| 763 | 763 | See :c:func:`PyUnicode_New` for details. | |
| 764 | 764 | ||
| 765 | - Return the number of written character, or return ``-1`` and raise an | ||
| 765 | + Return the number of written characters, or return ``-1`` and raise an | ||
| 766 | 766 | exception on error. | |
| 767 | 767 | ||
| 768 | 768 | .. versionadded:: 3.3 | |
@@ -1174,7 +1174,7 @@ These are the UTF-8 codec APIs: | |||
| 1174 | 1174 | .. versionadded:: 3.3 | |
| 1175 | 1175 | ||
| 1176 | 1176 | .. versionchanged:: 3.7 | |
| 1177 | - The return type is now ``const char *`` rather of ``char *``. | ||
| 1177 | + The return type is now ``const char *`` rather than ``char *``. | ||
| 1178 | 1178 | ||
| 1179 | 1179 | .. versionchanged:: 3.10 | |
| 1180 | 1180 | This function is a part of the :ref:`limited API <limited-c-api>`. | |
@@ -1196,7 +1196,7 @@ These are the UTF-8 codec APIs: | |||
| 1196 | 1196 | .. versionadded:: 3.3 | |
| 1197 | 1197 | ||
| 1198 | 1198 | .. versionchanged:: 3.7 | |
| 1199 | - The return type is now ``const char *`` rather of ``char *``. | ||
| 1199 | + The return type is now ``const char *`` rather than ``char *``. | ||
| 1200 | 1200 | ||
| 1201 | 1201 | ||
| 1202 | 1202 | UTF-32 Codecs | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -101,5 +101,5 @@ Pending removal in Python 3.16 | |||
| 101 | 101 | ||
| 102 | 102 | * :mod:`tarfile`: | |
| 103 | 103 | ||
| 104 | - * The undocumented and unused :attr:`!TarFile.tarfile` attribute | ||
| 104 | + * The undocumented and unused :attr:`!TarInfo.tarfile` attribute | ||
| 105 | 105 | has been deprecated since Python 3.13. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ This module defines an object type which can compactly represent an array of | |||
| 12 | 12 | basic values: characters, integers, floating-point numbers, complex numbers. Arrays are mutable :term:`sequence` | |
| 13 | 13 | types and behave very much like lists, except that the type of objects stored in | |
| 14 | 14 | them is constrained. The type is specified at object creation time by using a | |
| 15 | - :dfn:`type code`, which is a single character. The following type codes are | ||
| 15 | + :dfn:`type code`. The following type codes are | ||
| 16 | 16 | defined: | |
| 17 | 17 | ||
| 18 | 18 | +-----------+--------------------+-------------------+-----------------------+-------+ | |
@@ -91,7 +91,7 @@ Notes: | |||
| 91 | 91 | .. seealso:: | |
| 92 | 92 | ||
| 93 | 93 | The :ref:`ctypes <ctypes-fundamental-data-types>` and | |
| 94 | - :ref:`struct <format-characters>` modules, | ||
| 94 | + :ref:`struct <type-codes>` modules, | ||
| 95 | 95 | as well as third-party modules like `numpy <https://numpy.org/doc/stable/reference/arrays.interface.html#object.__array_interface__>`__, | |
| 96 | 96 | use similar -- but slightly different -- type codes. | |
| 97 | 97 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2572,8 +2572,7 @@ Fundamental data types | |||
| 2572 | 2572 | ||
| 2573 | 2573 | .. attribute:: _type_ | |
| 2574 | 2574 | ||
| 2575 | - Class attribute that contains an internal type code, as a | ||
| 2576 | - single-character string. | ||
| 2575 | + Class attribute that contains an internal type code, as a string. | ||
| 2577 | 2576 | See :ref:`ctypes-fundamental-data-types` for a summary. | |
| 2578 | 2577 | ||
| 2579 | 2578 | Types marked \* in the summary may be (or always are) aliases of a | |
@@ -2587,7 +2586,7 @@ Fundamental data types | |||
| 2587 | 2586 | ||
| 2588 | 2587 | .. seealso:: | |
| 2589 | 2588 | ||
| 2590 | - The :mod:`array` and :ref:`struct <format-characters>` modules, | ||
| 2589 | + The :mod:`array` and :ref:`struct <type-codes>` modules, | ||
| 2591 | 2590 | as well as third-party modules like `numpy <https://numpy.org/doc/stable/reference/arrays.interface.html#object.__array_interface__>`__, | |
| 2592 | 2591 | use similar -- but slightly different -- type codes. | |
| 2593 | 2592 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,7 +211,7 @@ Basic Usage | |||
| 211 | 211 | a string (such as ``"\t"``) is used to indent each level. | |
| 212 | 212 | If zero, negative, or ``""`` (the empty string), | |
| 213 | 213 | only newlines are inserted. | |
| 214 | - If ``None`` (the default), the most compact representation is used. | ||
| 214 | + If ``None`` (the default), no newlines are inserted. | ||
| 215 | 215 | :type indent: int | str | None | |
| 216 | 216 | ||
| 217 | 217 | :param separators: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -129,10 +129,18 @@ behavior of the module. | |||
| 129 | 129 | Add a mapping from the MIME type *type* to the extension *ext*. When the | |
| 130 | 130 | extension is already known, the new type will replace the old one. When the type | |
| 131 | 131 | is already known the extension will be added to the list of known extensions. | |
| 132 | + Valid extensions are empty or start with a ``'.'``. | ||
| 132 | 133 | ||
| 133 | 134 | When *strict* is ``True`` (the default), the mapping will be added to the | |
| 134 | 135 | official MIME types, otherwise to the non-standard ones. | |
| 135 | 136 | ||
| 137 | + .. deprecated:: 3.14 | ||
| 138 | + *ext* values that do not start with ``'.'`` are deprecated. | ||
| 139 | + | ||
| 140 | + .. versionchanged:: next | ||
| 141 | + *ext* now must start with ``'.'``. Otherwise :exc:`ValueError` is raised. | ||
| 142 | + | ||
| 143 | + | ||
| 136 | 144 | ||
| 137 | 145 | .. data:: inited | |
| 138 | 146 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments