[New-bugs-announce] [issue39713] ElementTree limitation

Ananth Vijalapuram report at bugs.python.org
Fri Feb 21 12:43:03 EST 2020


New submission from Ananth Vijalapuram <ananthsayan at gmail.com>:

I am trying to parse a very large XML file. Here is the output:

/usr/intel/bin/python3.7.4 crif_parser.py
Retrieved 3593891712 characters <- this is printed from my script
Traceback (most recent call last):
  File "crif_parser.py", line 9, in <module>
    tree = ET.fromstring(data)
  File "/usr/intel/pkgs/python3/3.7.4/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
    parser.feed(text)
OverflowError: size does not fit in an int

----------
components: XML
messages: 362416
nosy: Ananth Vijalapuram
priority: normal
severity: normal
status: open
title: ElementTree limitation
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list