Skip to content

Commit ec1c5cc

Browse files
committed
Avoid the _ptr suffix.
1 parent 0c8042e commit ec1c5cc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

peps/pep-0788.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ Strong Interpreter References
431431

432432
This type is guaranteed to be pointer-sized.
433433

434-
.. c:function:: int PyInterpreterRef_Get(PyInterpreterRef *ref_ptr)
434+
.. c:function:: int PyInterpreterRef_Get(PyInterpreterRef *ref)
435435
436436
Acquire a strong reference to the current interpreter.
437437
438-
On success, this function returns ``0`` and sets *ref_ptr*
438+
On success, this function returns ``0`` and sets *ref*
439439
to a strong reference to the interpreter, and returns ``-1``
440440
with an exception set on failure.
441441
@@ -444,15 +444,15 @@ Strong Interpreter References
444444
445445
The caller must hold an :term:`attached thread state`.
446446
447-
.. c:function:: int PyInterpreterRef_Main(PyInterpreterRef *ref_ptr)
447+
.. c:function:: int PyInterpreterRef_Main(PyInterpreterRef *ref)
448448
449449
Acquire a strong reference to the main interpreter.
450450
451451
This function only exists for special cases where a specific interpreter
452452
can't be saved. Prefer safely acquiring a reference through
453453
:c:func:`PyInterpreterRef_Get` whenever possible.
454454
455-
On success, this function will return ``0`` and set *ref_ptr* to a strong
455+
On success, this function will return ``0`` and set *ref* to a strong
456456
reference, and on failure, this function will return ``-1``.
457457
458458
Failure typically indicates that the main interpreter has already finished
@@ -491,14 +491,14 @@ Weak Interpreter References
491491
The interpreter will *not* wait for the reference to be
492492
released before shutting down.
493493
494-
.. c:function:: int PyInterpreterWeakRef_Get(PyInterpreterWeakRef *wref_ptr)
494+
.. c:function:: int PyInterpreterWeakRef_Get(PyInterpreterWeakRef *wref)
495495
496496
Acquire a weak reference to the current interpreter.
497497
498498
This function is generally meant to be used in tandem with
499499
:c:func:`PyInterpreterWeakRef_AsStrong`.
500500
501-
On success, this function returns ``0`` and sets *wref_ptr* to a
501+
On success, this function returns ``0`` and sets *wref* to a
502502
weak reference to the interpreter, and returns ``-1`` with an exception
503503
set on failure.
504504
@@ -511,11 +511,11 @@ Weak Interpreter References
511511
This function cannot fail, and the caller doesn't need to hold an
512512
:term:`attached thread state`.
513513
514-
.. c:function:: int PyInterpreterWeakRef_AsStrong(PyInterpreterWeakRef wref, PyInterpreterRef *ref_ptr)
514+
.. c:function:: int PyInterpreterWeakRef_AsStrong(PyInterpreterWeakRef wref, PyInterpreterRef *ref)
515515
516516
Acquire a strong reference to an interpreter through a weak reference.
517517
518-
On success, this function returns ``0`` and sets *ref_ptr* to a strong
518+
On success, this function returns ``0`` and sets *ref* to a strong
519519
reference to the interpreter denoted by *wref*.
520520
521521
If the interpreter no longer exists or has already finished waiting

0 commit comments

Comments
 (0)