bpo-39495: Remove default value from C impl of TreeBuilder.start#18275
bpo-39495: Remove default value from C impl of TreeBuilder.start#18275serhiy-storchaka merged 6 commits intopython:masterfrom
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. |
|
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