mirror of
https://github.com/python/cpython.git
synced 2025-08-15 14:20:55 +00:00
[3.12] Use pep role instead of url (GH-121611) (#124173)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
This commit is contained in:
parent
c54ee87278
commit
a032a96a92
11 changed files with 36 additions and 41 deletions
|
@ -90,8 +90,8 @@ bound into a function.
|
|||
Return the line number of the instruction that occurs on or before ``byte_offset`` and ends after it.
|
||||
If you just need the line number of a frame, use :c:func:`PyFrame_GetLineNumber` instead.
|
||||
|
||||
For efficiently iterating over the line numbers in a code object, use `the API described in PEP 626
|
||||
<https://peps.python.org/pep-0626/#out-of-process-debuggers-and-profilers>`_.
|
||||
For efficiently iterating over the line numbers in a code object, use :pep:`the API described in PEP 626
|
||||
<0626#out-of-process-debuggers-and-profilers>`.
|
||||
|
||||
.. c:function:: int PyCode_Addr2Location(PyObject *co, int byte_offset, int *start_line, int *start_column, int *end_line, int *end_column)
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ of Python objects.
|
|||
``NULL``, use :c:func:`Py_XINCREF`.
|
||||
|
||||
Do not expect this function to actually modify *o* in any way.
|
||||
For at least `some objects <https://peps.python.org/pep-0683/>`_,
|
||||
For at least :pep:`some objects <0683>`,
|
||||
this function has no effect.
|
||||
|
||||
.. versionchanged:: 3.12
|
||||
|
@ -125,7 +125,7 @@ of Python objects.
|
|||
use :c:func:`Py_XDECREF`.
|
||||
|
||||
Do not expect this function to actually modify *o* in any way.
|
||||
For at least `some objects <https://peps.python.org/pep-0683/>`_,
|
||||
For at least :pep:`some objects <683>`,
|
||||
this function has no effect.
|
||||
|
||||
.. warning::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue