-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39495: Remove default value from C impl of TreeBuilder.start #18275
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
Conversation
As suggested by Serhiy, this changes the C implementation of Note however, that the C implementation of TreeBuilder.start still accepts I looked into changing the C implementation to also throw a cpython/Modules/_elementtree.c Line 3315 in 188bb5b
|
Misc/NEWS.d/next/Library/2020-01-30-07-02-02.bpo-39495.8LsIRN.rst
Outdated
Show resolved
Hide resolved
Thank you for your PR @hauntsaninja. I prefer to remove also the support of None as a value of
|
Or you can just use |
Thanks Dong-hee and Serhiy! Don't know much about argument clinic converters, that's a neat fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I'd like to add unit tests for this change.
You can add in these files.
Thanks, sorry for the delay, done. It seems test_xml_etree_c.py automatically runs all tests in test_xml_etree.py, so I only added a test in the latter. |
Codecov Report
@@ Coverage Diff @@
## master #18275 +/- ##
===========================================
+ Coverage 82.12% 83.22% +1.10%
===========================================
Files 1955 1571 -384
Lines 588706 415384 -173322
Branches 44401 44488 +87
===========================================
- Hits 483462 345712 -137750
+ Misses 95601 60027 -35574
- Partials 9643 9645 +2
Continue to review full report at Codecov.
|
@serhiy-storchaka Can you please take a look? |
https://bugs.python.org/issue39495