reloading a network resource fails
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
lxml | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Medium
|
scoder |
Bug Description
Hi,
parsing from a network resource works only once in lxml trunk.
If you try to repeat that operation, it fails for all subsequent
attempts:
*** 2.0.dev-45372 ***
>>> etree.parse("http://
<etree._ElementTree object at 0x2e4850>
>>> etree.parse("http://
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "etree.pyx", line 2065, in etree.parse
File "parser.pxi", line 1004, in etree._
File "parser.pxi", line 1008, in etree._
File "parser.pxi", line 925, in etree._
File "parser.pxi", line 585, in etree._
File "parser.pxi", line 682, in etree._
File "parser.pxi", line 630, in etree._
etree.XMLSyntax
>>> etree.parse("http://
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "etree.pyx", line 2065, in etree.parse
File "parser.pxi", line 1004, in etree._
File "parser.pxi", line 1008, in etree._
File "parser.pxi", line 925, in etree._
File "parser.pxi", line 585, in etree._
File "parser.pxi", line 682, in etree._
File "parser.pxi", line 630, in etree._
etree.XMLSyntax
>>> etree.parse("http://
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "etree.pyx", line 2065, in etree.parse
File "parser.pxi", line 1004, in etree._
File "parser.pxi", line 1008, in etree._
File "parser.pxi", line 925, in etree._
File "parser.pxi", line 585, in etree._
File "parser.pxi", line 682, in etree._
File "parser.pxi", line 630, in etree._
etree.XMLSyntax
>>>
Holger
I rather often use local files, so I ran into this by accident. 1.3 does not have the same problem (same libxml2 version).