mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
special input values as literal text.
This commit is contained in:
parent
b29cee40ee
commit
1ecf7d204d
12 changed files with 64 additions and 64 deletions
|
@ -32,9 +32,9 @@ Slice Objects
|
|||
assuming a sequence of length *length*. Treats indices greater than
|
||||
*length* as errors.
|
||||
|
||||
Returns 0 on success and -1 on error with no exception set (unless one of
|
||||
Returns ``0`` on success and ``-1`` on error with no exception set (unless one of
|
||||
the indices was not :const:`None` and failed to be converted to an integer,
|
||||
in which case -1 is returned with an exception set).
|
||||
in which case ``-1`` is returned with an exception set).
|
||||
|
||||
You probably do not want to use this function.
|
||||
|
||||
|
@ -51,7 +51,7 @@ Slice Objects
|
|||
of bounds indices are clipped in a manner consistent with the handling of
|
||||
normal slices.
|
||||
|
||||
Returns 0 on success and -1 on error with exception set.
|
||||
Returns ``0`` on success and ``-1`` on error with exception set.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
The parameter type for the *slice* parameter was ``PySliceObject*``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue