FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-124385: Document and soft-deprecate PyLong_AS_LONG by encukou · Pull Request #124386 · python/cpython · GitHub

Repository navigation

gh-124385: Document and soft-deprecate PyLong_AS_LONG - #124386

Merged
encukou merged 3 commits into
python:mainfrom
encukou:PyLong_AS_LONG
Sep 27, 2024
Merged

encukou merged 3 commits into
python:mainfrom
encukou:PyLong_AS_LONG

Conversation

encukou commented Sep 23, 2024 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

bedevere-app Bot added docs Documentation in the Doc dir skip news labels Sep 23, 2024

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please add a deprecated or deprecated-removed directive. It needs also a NEWS entry and a What's New entry.

encukou added needs backport to 3.12 only security fixes needs backport to 3.13 only security fixes labels Sep 24, 2024

encukou commented Sep 24, 2024

Copy link
Copy Markdown
Member Author

The function itself is not new, and it was always discouraged.
IMO, is PR correctly describes PyLong_AS_LONG in Python 3.0-3.13. Only the docs are new, and we can backport them into all branches that accept doc fixes.

Copy link
Copy Markdown
Member

The deprecation is new.

encukou commented Sep 24, 2024

Copy link
Copy Markdown
Member Author

Yeah, but it's a soft deprecation. Nothing depends on when we officially said you shouldn't use it.

Comment thread Doc/c-api/long.rst

Copy link
Copy Markdown
Member

I don't think that this change should be backported. Or if you want to backport it, it should be without the soft deprecation.

Comment thread Doc/c-api/long.rst

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Comment thread Doc/c-api/long.rst Outdated
encukou enabled auto-merge (squash) September 27, 2024 23:21
encukou merged commit 425587a into python:main Sep 27, 2024

Copy link
Copy Markdown

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

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 27, 2024
…-124386)

(cherry picked from commit 425587a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>

Copy link
Copy Markdown

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

cherry_picker 425587a110eb214a097c634d4b6d944ac478923e 3.12

bedevere-app Bot commented Sep 27, 2024

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Sep 27, 2024
Yhg1s pushed a commit that referenced this pull request Sep 30, 2024
…) (#124719)

gh-124385: Document and soft-deprecate PyLong_AS_LONG (GH-124386)
(cherry picked from commit 425587a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou deleted the PyLong_AS_LONG branch October 1, 2024 14:02
hugovk pushed a commit to hugovk/cpython that referenced this pull request Feb 25, 2025
…ythonGH-124386)

(cherry picked from commit 425587a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>

bedevere-app Bot commented Feb 25, 2025

Copy link
Copy Markdown

GH-130549 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Feb 25, 2025
hugovk added a commit that referenced this pull request Mar 17, 2025
…) (#130549)

(cherry picked from commit 425587a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL