Use pep role instead of url (#121611)

This commit is contained in:
Rafael Fontenelle 2024-09-17 10:02:14 -03:00 committed by GitHub
parent 4d09719341
commit 33eeccf6d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 41 deletions

View file

@ -96,8 +96,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)