Skip to content

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

@encukou encukou commented Sep 23, 2024 •

Copy link
Copy Markdown
Member
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Sep 23, 2024

@serhiy-storchaka 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.

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

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

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.

@serhiy-storchaka

Copy link
Copy Markdown
Member

The deprecation is new.

@encukou

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 Resolved
@vstinner

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 Resolved

@vstinner 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.

LGTM

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

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>
@miss-islington-app

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

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 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
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

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 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>
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

3 participants