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
Update Doc/c-api/lifecycle.rst
Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
ZeroIntensity and encukou authored May 5, 2025
commit 2633594ed725cf4624172ef2fa9d2b8d629c87d4
3 changes: 2 additions & 1 deletion 3 Doc/c-api/lifecycle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ that must be true for *B* to occur after *A*.
object.
#. :c:member:`~PyTypeObject.tp_init` initializes the newly created object.
:c:member:`!tp_init` can be called again to re-initialize an object, if
desired.
desired. The :c:member:`!tp_init` call can also be skipped entirely,
for example by Python code calling :py:meth:`~object.__new__`.

* After :c:member:`!tp_init` completes, the object is ready to use.
* Some time after the last reference to an object is removed:
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.