| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -172,9 +172,9 @@ The module defines the following functions: | |||
| 172 | 172 | which the lock starts, relative to *whence*, and *whence* is as with | |
| 173 | 173 | :func:`io.IOBase.seek`, specifically: | |
| 174 | 174 | ||
| 175 | - * :const:`0` -- relative to the start of the file (:const:`os.SEEK_SET`) | ||
| 176 | - * :const:`1` -- relative to the current buffer position (:const:`os.SEEK_CUR`) | ||
| 177 | - * :const:`2` -- relative to the end of the file (:const:`os.SEEK_END`) | ||
| 175 | + * ``0`` -- relative to the start of the file (:const:`os.SEEK_SET`) | ||
| 176 | + * ``1`` -- relative to the current buffer position (:const:`os.SEEK_CUR`) | ||
| 177 | + * ``2`` -- relative to the end of the file (:const:`os.SEEK_END`) | ||
| 178 | 178 | ||
| 179 | 179 | The default for *start* is 0, which means to start at the beginning of the file. | |
| 180 | 180 | The default for *len* is 0 which means to lock to the end of the file. The | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ another rational number, or from a string. | |||
| 25 | 25 | ||
| 26 | 26 | The first version requires that *numerator* and *denominator* are instances | |
| 27 | 27 | of :class:`numbers.Rational` and returns a new :class:`Fraction` instance | |
| 28 | - with value ``numerator/denominator``. If *denominator* is :const:`0`, it | ||
| 28 | + with value ``numerator/denominator``. If *denominator* is ``0``, it | ||
| 29 | 29 | raises a :exc:`ZeroDivisionError`. The second version requires that | |
| 30 | 30 | *other_fraction* is an instance of :class:`numbers.Rational` and returns a | |
| 31 | 31 | :class:`Fraction` instance with the same value. The next two versions accept | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -97,7 +97,7 @@ sends logging output to a disk file. It inherits the output functionality from | |||
| 97 | 97 | ||
| 98 | 98 | Returns a new instance of the :class:`FileHandler` class. The specified file is | |
| 99 | 99 | opened and used as the stream for logging. If *mode* is not specified, | |
| 100 | - :const:`'a'` is used. If *encoding* is not ``None``, it is used to open the file | ||
| 100 | + ``'a'`` is used. If *encoding* is not ``None``, it is used to open the file | ||
| 101 | 101 | with that encoding. If *delay* is true, then file opening is deferred until the | |
| 102 | 102 | first call to :meth:`emit`. By default, the file grows indefinitely. If | |
| 103 | 103 | *errors* is specified, it's used to determine how encoding errors are handled. | |
@@ -182,7 +182,7 @@ for this value. | |||
| 182 | 182 | ||
| 183 | 183 | Returns a new instance of the :class:`WatchedFileHandler` class. The specified | |
| 184 | 184 | file is opened and used as the stream for logging. If *mode* is not specified, | |
| 185 | - :const:`'a'` is used. If *encoding* is not ``None``, it is used to open the file | ||
| 185 | + ``'a'`` is used. If *encoding* is not ``None``, it is used to open the file | ||
| 186 | 186 | with that encoding. If *delay* is true, then file opening is deferred until the | |
| 187 | 187 | first call to :meth:`emit`. By default, the file grows indefinitely. If | |
| 188 | 188 | *errors* is provided, it determines how encoding errors are handled. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -401,11 +401,11 @@ process and user. | |||
| 401 | 401 | ||
| 402 | 402 | On macOS, :func:`getgroups` behavior differs somewhat from | |
| 403 | 403 | other Unix platforms. If the Python interpreter was built with a | |
| 404 | - deployment target of :const:`10.5` or earlier, :func:`getgroups` returns | ||
| 404 | + deployment target of ``10.5`` or earlier, :func:`getgroups` returns | ||
| 405 | 405 | the list of effective group ids associated with the current user process; | |
| 406 | 406 | this list is limited to a system-defined number of entries, typically 16, | |
| 407 | 407 | and may be modified by calls to :func:`setgroups` if suitably privileged. | |
| 408 | - If built with a deployment target greater than :const:`10.5`, | ||
| 408 | + If built with a deployment target greater than ``10.5``, | ||
| 409 | 409 | :func:`getgroups` returns the current group access list for the user | |
| 410 | 410 | associated with the effective user id of the process; the group access | |
| 411 | 411 | list may change over the lifetime of the process, it is not affected by | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -656,7 +656,7 @@ The :mod:`signal` module defines the following functions: | |||
| 656 | 656 | .. function:: sigtimedwait(sigset, timeout) | |
| 657 | 657 | ||
| 658 | 658 | Like :func:`sigwaitinfo`, but takes an additional *timeout* argument | |
| 659 | - specifying a timeout. If *timeout* is specified as :const:`0`, a poll is | ||
| 659 | + specifying a timeout. If *timeout* is specified as ``0``, a poll is | ||
| 660 | 660 | performed. Returns :const:`None` if a timeout occurs. | |
| 661 | 661 | ||
| 662 | 662 | .. availability:: Unix. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -320,7 +320,7 @@ Random generation | |||
| 320 | 320 | ||
| 321 | 321 | Mix the given *bytes* into the SSL pseudo-random number generator. The | |
| 322 | 322 | parameter *entropy* (a float) is a lower bound on the entropy contained in | |
| 323 | - string (so you can always use :const:`0.0`). See :rfc:`1750` for more | ||
| 323 | + string (so you can always use ``0.0``). See :rfc:`1750` for more | ||
| 324 | 324 | information on sources of entropy. | |
| 325 | 325 | ||
| 326 | 326 | .. versionchanged:: 3.5 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -465,9 +465,9 @@ functions. | |||
| 465 | 465 | :func:`open` function when creating the stdin/stdout/stderr pipe | |
| 466 | 466 | file objects: | |
| 467 | 467 | ||
| 468 | - - :const:`0` means unbuffered (read and write are one | ||
| 468 | + - ``0`` means unbuffered (read and write are one | ||
| 469 | 469 | system call and can return short) | |
| 470 | - - :const:`1` means line buffered | ||
| 470 | + - ``1`` means line buffered | ||
| 471 | 471 | (only usable if ``text=True`` or ``universal_newlines=True``) | |
| 472 | 472 | - any other positive value means use a buffer of approximately that | |
| 473 | 473 | size | |
@@ -477,7 +477,7 @@ functions. | |||
| 477 | 477 | .. versionchanged:: 3.3.1 | |
| 478 | 478 | *bufsize* now defaults to -1 to enable buffering by default to match the | |
| 479 | 479 | behavior that most code expects. In versions prior to Python 3.2.4 and | |
| 480 | - 3.3.1 it incorrectly defaulted to :const:`0` which was unbuffered | ||
| 480 | + 3.3.1 it incorrectly defaulted to ``0`` which was unbuffered | ||
| 481 | 481 | and allowed short reads. This was unintentional and did not match the | |
| 482 | 482 | behavior of Python 2 as most code expected. | |
| 483 | 483 | ||
@@ -541,8 +541,8 @@ functions. | |||
| 541 | 541 | :exc:`RuntimeError`. The new restriction may affect applications that | |
| 542 | 542 | are deployed in mod_wsgi, uWSGI, and other embedded environments. | |
| 543 | 543 | ||
| 544 | - If *close_fds* is true, all file descriptors except :const:`0`, :const:`1` and | ||
| 545 | - :const:`2` will be closed before the child process is executed. Otherwise | ||
| 544 | + If *close_fds* is true, all file descriptors except ``0``, ``1`` and | ||
| 545 | + ``2`` will be closed before the child process is executed. Otherwise | ||
| 546 | 546 | when *close_fds* is false, file descriptors obey their inheritable flag | |
| 547 | 547 | as described in :ref:`fd_inheritance`. | |
| 548 | 548 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -877,19 +877,19 @@ always available. | |||
| 877 | 877 | ``sys.getwindowsversion().major``. For compatibility with prior | |
| 878 | 878 | versions, only the first 5 elements are retrievable by indexing. | |
| 879 | 879 | ||
| 880 | - *platform* will be :const:`2 (VER_PLATFORM_WIN32_NT)`. | ||
| 880 | + *platform* will be ``2`` (VER_PLATFORM_WIN32_NT). | ||
| 881 | 881 | ||
| 882 | 882 | *product_type* may be one of the following values: | |
| 883 | 883 | ||
| 884 | 884 | +---------------------------------------+---------------------------------+ | |
| 885 | 885 | | Constant | Meaning | | |
| 886 | 886 | +=======================================+=================================+ | |
| 887 | - | :const:`1 (VER_NT_WORKSTATION)` | The system is a workstation. | | ||
| 887 | + | ``1`` (VER_NT_WORKSTATION) | The system is a workstation. | | ||
| 888 | 888 | +---------------------------------------+---------------------------------+ | |
| 889 | - | :const:`2 (VER_NT_DOMAIN_CONTROLLER)` | The system is a domain | | ||
| 889 | + | ``2`` (VER_NT_DOMAIN_CONTROLLER) | The system is a domain | | ||
| 890 | 890 | | | controller. | | |
| 891 | 891 | +---------------------------------------+---------------------------------+ | |
| 892 | - | :const:`3 (VER_NT_SERVER)` | The system is a server, but not | | ||
| 892 | + | ``3`` (VER_NT_SERVER) | The system is a server, but not | | ||
| 893 | 893 | | | a domain controller. | | |
| 894 | 894 | +---------------------------------------+---------------------------------+ | |
| 895 | 895 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,7 +100,6 @@ Doc/library/faulthandler.rst | |||
| 100 | 100 | Doc/library/fcntl.rst | |
| 101 | 101 | Doc/library/filecmp.rst | |
| 102 | 102 | Doc/library/fileinput.rst | |
| 103 | - Doc/library/fractions.rst | ||
| 104 | 103 | Doc/library/ftplib.rst | |
| 105 | 104 | Doc/library/functions.rst | |
| 106 | 105 | Doc/library/functools.rst | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1135,20 +1135,20 @@ API changes | |||
| 1135 | 1135 | * The C module has the following context limits, depending on the machine | |
| 1136 | 1136 | architecture: | |
| 1137 | 1137 | ||
| 1138 | - +-------------------+---------------------+------------------------------+ | ||
| 1139 | - | | 32-bit | 64-bit | | ||
| 1140 | - +===================+=====================+==============================+ | ||
| 1141 | - | :const:`MAX_PREC` | :const:`425000000` | :const:`999999999999999999` | | ||
| 1142 | - +-------------------+---------------------+------------------------------+ | ||
| 1143 | - | :const:`MAX_EMAX` | :const:`425000000` | :const:`999999999999999999` | | ||
| 1144 | - +-------------------+---------------------+------------------------------+ | ||
| 1145 | - | :const:`MIN_EMIN` | :const:`-425000000` | :const:`-999999999999999999` | | ||
| 1146 | - +-------------------+---------------------+------------------------------+ | ||
| 1138 | + +-------------------+----------------+-------------------------+ | ||
| 1139 | + | | 32-bit | 64-bit | | ||
| 1140 | + +===================+================+=========================+ | ||
| 1141 | + | :const:`MAX_PREC` | ``425000000`` | ``999999999999999999`` | | ||
| 1142 | + +-------------------+----------------+-------------------------+ | ||
| 1143 | + | :const:`MAX_EMAX` | ``425000000`` | ``999999999999999999`` | | ||
| 1144 | + +-------------------+----------------+-------------------------+ | ||
| 1145 | + | :const:`MIN_EMIN` | ``-425000000`` | ``-999999999999999999`` | | ||
| 1146 | + +-------------------+----------------+-------------------------+ | ||
| 1147 | 1147 | ||
| 1148 | 1148 | * In the context templates (:class:`~decimal.DefaultContext`, | |
| 1149 | 1149 | :class:`~decimal.BasicContext` and :class:`~decimal.ExtendedContext`) | |
| 1150 | 1150 | the magnitude of :attr:`~decimal.Context.Emax` and | |
| 1151 | - :attr:`~decimal.Context.Emin` has changed to :const:`999999`. | ||
| 1151 | + :attr:`~decimal.Context.Emin` has changed to ``999999``. | ||
| 1152 | 1152 | ||
| 1153 | 1153 | * The :class:`~decimal.Decimal` constructor in decimal.py does not observe | |
| 1154 | 1154 | the context limits and converts values with arbitrary exponents or precision | |
| Back | FazBrowse Home | New Git URL |
0 commit comments