Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-75459: Doc: C API: Improve object life cycle documentation #125962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
May 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bc32398
gh-75459: Doc: C API: Improve object life cycle documentation
rhansen Oct 19, 2024
361eaca
gh-75459: Doc: Tell sphinx to run graphviz
rhansen Oct 25, 2024
b27bcca
add blurb
rhansen Oct 25, 2024
b42b58d
Revert "gh-75459: Doc: Tell sphinx to run graphviz"
rhansen Oct 25, 2024
7e571ae
delete "ref count == 0" node, link directly to `tp_dealloc`
rhansen Oct 26, 2024
97dc30c
Merge branch 'main' into docs
rhansen Nov 7, 2024
85e535a
significant rewrite to address review comments
rhansen Nov 7, 2024
ef979e6
fix warnings
rhansen Nov 7, 2024
f3863c4
tweak cyclic isolate definition
rhansen Nov 7, 2024
6a114f9
apply css to the svg to support dark theme
rhansen Nov 8, 2024
182c977
increase font size
rhansen Nov 8, 2024
7cd0cb5
attempt to make the svg accessible
rhansen Nov 8, 2024
e34e224
wrap at 79 chars
rhansen Nov 8, 2024
16a29ab
address review feedback, and other tweaks
rhansen Nov 9, 2024
018a3c4
be more precise about the finalized mark
rhansen Nov 21, 2024
442b7f2
add pdf support, improve epub support
rhansen Nov 21, 2024
5ed484a
address feedback, and other improvements
rhansen Nov 27, 2024
b7774ae
Merge in the main branch
encukou Mar 11, 2025
bb1a94f
Remove redundant notes added in GH-129850
encukou Mar 11, 2025
fd38fd4
Merge branch 'main' into docs
ZeroIntensity May 5, 2025
3573c79
Apply suggestions from code review
ZeroIntensity May 5, 2025
2633594
Update Doc/c-api/lifecycle.rst
ZeroIntensity May 5, 2025
c57574a
Mention tp_alloc()
ZeroIntensity May 5, 2025
878fd27
Avoid using 'do not'
ZeroIntensity May 5, 2025
1b96fad
Mention PyObject_CallFinalizerFromDealloc()
ZeroIntensity May 5, 2025
e8c6852
Add some clarifications about tp_finalize()
ZeroIntensity May 5, 2025
3408919
Say that tp_dealloc() must free.
ZeroIntensity May 5, 2025
b6023a3
Fix doctest.
ZeroIntensity May 5, 2025
da3593c
Apply suggestions from code review
ZeroIntensity May 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into docs
  • Loading branch information
rhansen committed Nov 7, 2024
commit 97dc30c4d1174b6268ab5f0f398911a69df88c79
6 changes: 2 additions & 4 deletions 6 Doc/c-api/allocation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ Allocating Objects on the Heap
.. c:function:: PyObject* PyObject_Init(PyObject *op, PyTypeObject *type)

Initialize a newly allocated object *op* with its type and initial
reference. Returns the initialized object. If *type* indicates that the
object participates in the cyclic garbage detector, it is added to the
detector's set of observed objects. Other fields of the object are not
initialized. Specifically, this function does **not** call the object's
reference. Returns the initialized object. Other fields of the object are
not initialized. Specifically, this function does **not** call the object's
:meth:`~object.__init__` method (:c:member:`~PyTypeObject.tp_init` slot).


Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.