[issue41759] ElementTree.parse gives error message about missing1 required positional argument: 'source' but it is there

Serhiy Storchaka report at bugs.python.org
Fri Sep 11 11:06:43 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It was not clear what you do without code and full traceback.

The example uses *function* parse() from *module* ElementTree. Your code seems uses *method* parse() of *class* ElementTree.

https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.parse
https://docs.python.org/3/library/xml.etree.elementtree.html#xml.etree.ElementTree.ElementTree.parse

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41759>
_______________________________________


More information about the Python-bugs-list mailing list