Skip to content

gh-129843: Fix the wrong argument passed - converting positional argument to named argument #129848

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 17, 2025

Conversation

srinivasreddy
Copy link
Contributor

@srinivasreddy srinivasreddy commented Feb 8, 2025

Copy link

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

not sure, if this need an entry to news? it seems to be a kind of bug fix to me, isn't it?

@srinivasreddy
Copy link
Contributor Author

srinivasreddy commented Feb 13, 2025

Yes, It is a bug fix, and i do not think it warrants a news entry.

@picnixz
Copy link
Member

picnixz commented Mar 14, 2025

Yes, It is a bug fix, and i do not think it warrants a news entry.

It still needs a NEWS IMO because it's still a change that users may be happy to know. Something along the lines "Fix Python implementation of :func:`warnings.warn_explicit`."

Abhisek-Tiwari added a commit to Abhisek-Tiwari/cpython that referenced this pull request Mar 14, 2025
@srinivasreddy
Copy link
Contributor Author

@picnixz Done

@picnixz picnixz enabled auto-merge (squash) March 17, 2025 10:26
@picnixz picnixz added needs backport to 3.12 only security fixes needs backport to 3.13 bugs and security fixes labels Mar 17, 2025
@picnixz picnixz merged commit 80e00ec into python:main Mar 17, 2025
43 checks passed
@miss-islington-app
Copy link

Thanks @srinivasreddy for the PR, and @picnixz for merging it 🌮🎉.. 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 Mar 17, 2025
…licit` (pythonGH-129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
(cherry picked from commit 80e00ec)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Mar 17, 2025

GH-131349 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 Mar 17, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 17, 2025
…licit` (pythonGH-129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
(cherry picked from commit 80e00ec)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Mar 17, 2025

GH-131350 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 Mar 17, 2025
picnixz pushed a commit that referenced this pull request Mar 17, 2025
…plicit` (GH-129848) (#131349)

gh-129843: fix pure Python implementation of `warnings.warn_explicit` (GH-129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
(cherry picked from commit 80e00ec)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <[email protected]>
picnixz pushed a commit that referenced this pull request Mar 17, 2025
…plicit` (GH-129848) (#131350)

gh-129843: fix pure Python implementation of `warnings.warn_explicit` (GH-129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
(cherry picked from commit 80e00ec)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <[email protected]>
@srinivasreddy srinivasreddy deleted the gh-129843 branch March 17, 2025 12:56
plashchynski pushed a commit to plashchynski/cpython that referenced this pull request Mar 17, 2025
…licit` (python#129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
…licit` (python#129848)

The pure Python implementation of `warnings.warn_explicit` constructs a `WarningMessage`
with an incorrect source (it incorrectly sets the WarningMessage's line to the given `source`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants