gh-83122: Deprecate testing element truth values in `ElementTree` by jacobtylerwalls · Pull Request #31149 · python/cpython · GitHub

github.com

Tin mới

jacobtylerwalls:c-etree-bool-warning

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

bpo-38941: Warn when testing element truth values in C version of Ele…

Fix bug in implementation

Merge branch 'main' into c-etree-bool-warning

View reviewed changes

awaiting core review

awaiting core review

Move test to Python suite

View reviewed changes

Learn more about hiding disruptive comments

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

xml.etree.ElementTree.Element inconsistent warning for bool #83122

Merge branch 'main' into c-etree-bool-warning

View reviewed changes

Avoid mentioning messy history

Adjust warning message and stacklevel

Merge branch 'c-etree-bool-warning' of

https://github.com/jacobtylerw…

awaiting change review

awaiting change review

View reviewed changes

Avoid testing truth value of ElementTree.Element cuthbertLab/music21#1666

Adjust deprecation warning re: testing truth value of xml.etree.ElementTree.Element #119577

Forbid lxml.etree.Element.__bool__? abelcheung/types-lxml#126