Skip to content

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Nov 4, 2025

@encukou
Copy link
Member

encukou commented Nov 4, 2025

Perhaps deprecate this in favour of PyLong_AsNativeBytes with sizeof(pid_t)? (Platforms like Windows don't have pid_t, but to use this function you need to know the type for your platform anyway.)

@ZeroIntensity
Copy link
Member Author

No objection from me, but we should still document things like this for completeness (even if it's just to say "use this other thing instead"). Would you mind adding things to (soft) deprecate on the list I created at capi-workgroup/decisions#86?

ZeroIntensity and others added 3 commits November 6, 2025 08:42
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

If they become (soft) deprecated, it can be done in a separated PR.

@ZeroIntensity
Copy link
Member Author

Yeah, and the deprecation won't be backported either. Thanks for the review!

@ZeroIntensity ZeroIntensity merged commit bcc524f into python:main Nov 6, 2025
32 checks passed
@ZeroIntensity ZeroIntensity deleted the document-pylong-pid branch November 6, 2025 14:01
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Nov 6, 2025
@miss-islington-app
Copy link

Thanks @ZeroIntensity for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 6, 2025
…GH-141028)

(cherry picked from commit bcc524f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

bedevere-app bot commented Nov 6, 2025

GH-141142 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Nov 6, 2025
@miss-islington-app
Copy link

Sorry, @ZeroIntensity, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker bcc524f82d8548707046ce90f5bc56f60018767a 3.13

@bedevere-app
Copy link

bedevere-app bot commented Nov 6, 2025

GH-141143 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Nov 6, 2025
ZeroIntensity added a commit to ZeroIntensity/cpython that referenced this pull request Nov 6, 2025
…GH-141028)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit bcc524f)
ZeroIntensity added a commit to ZeroIntensity/cpython that referenced this pull request Nov 6, 2025
…ythonGH-141028)

(cherry picked from commit bcc524f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
ZeroIntensity added a commit that referenced this pull request Nov 6, 2025
…1028) (GH-141142)

gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)
(cherry picked from commit bcc524f)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
ZeroIntensity added a commit that referenced this pull request Nov 6, 2025
…1028) (GH-141143)

* gh-141004: Document `PyLong_FromPid` and `PyLong_AsPid` (GH-141028)

Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit bcc524f)
beneltayar pushed a commit to beneltayar/cpython that referenced this pull request Nov 6, 2025
…GH-141028)

Co-authored-by: Victor Stinner <vstinner@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants