Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree#119762

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@jacobtylerwalls
Copy link
Contributor

@jacobtylerwallsjacobtylerwalls commentedMay 30, 2024
edited by github-actionsbot
Loading

Adjust this deprecation warning to refer to returning True regardless of the existence of subelements (rather than raising an exception in 3.14).

I'm not sure whether this should be described as pending for 3.16 or just "future versions".


📚 Documentation preview 📚:https://cpython-previews--119762.org.readthedocs.build/

Copy link
Member

@gpsheadgpshead left a comment

Choose a reason for hiding this comment

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

thanks!

@gpsheadgpshead added the needs backport to 3.13bugs and security fixes labelJun 7, 2024
@gpsheadgpshead merged commit6b60652 intopython:mainJun 7, 2024
@miss-islington-app
Copy link

Thanks@jacobtylerwalls for the PR, and@gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJun 7, 2024
… values in ElementTree (pythonGH-119762)Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases.(cherry picked from commit6b60652)Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
@bedevere-app
Copy link

GH-120189 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelJun 7, 2024
gpshead pushed a commit to gpshead/cpython that referenced this pull requestJun 7, 2024
… values in ElementTree (pythonGH-119762)Adjust DeprecationWarning when testing element truth values inElementTree, we're planning to go with the more natural True returnrather than a disruptive harder to code around exception raise, and aredeferring the behavior change for a few more releases.
@bedevere-app
Copy link

GH-120190 is a backport of this pull request to the3.12 branch.

gpshead pushed a commit that referenced this pull requestJun 7, 2024
…h values in ElementTree (GH-119762) (GH-120189)gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762)Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases.(cherry picked from commit6b60652)Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
pygeek pushed a commit to pygeek/cpython that referenced this pull requestJun 7, 2024
… values in ElementTree (pythonGH-119762)Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases.
@jacobtylerwallsjacobtylerwalls deleted the adjust-etree-bool-warning branchJune 7, 2024 12:33
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull requestJul 11, 2024
… values in ElementTree (pythonGH-119762)Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases.
estyxx pushed a commit to estyxx/cpython that referenced this pull requestJul 17, 2024
… values in ElementTree (pythonGH-119762)Adjust DeprecationWarning when testing element truth values in ElementTree, we're planning to go with the more natural True return rather than a disruptive harder to code around exception raise, and are deferring the behavior change for a few more releases.
Yhg1s pushed a commit that referenced this pull requestAug 6, 2024
…h values in Element tree (GH-119762) (#120190)gh-119577: Adjust DeprecationWarning when testing element truth values in ElementTree (GH-119762)Adjust DeprecationWarning when testing element truth values inElementTree, we're planning to go with the more natural True returnrather than a disruptive harder to code around exception raise, and aredeferring the behavior change for a few more releases.Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@gpsheadgpsheadgpshead approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jacobtylerwalls@gpshead

[8]ページ先頭

©2009-2025 Movatter.jp