Issue6230
Created on 2009-06-07 14:08 by Neil Muller, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| repr-fix.diff | Neil Muller, 2009-06-07 14:08 | Fix & test case for repr behaviour | ||
| Messages (4) | |||
|---|---|---|---|
| msg89035 - (view) | Author: Neil Muller (Neil Muller) | Date: 2009-06-07 14:08 | |
ElementTree and cElementTree give slightly different results for
repr(Element):
>>> import xml.etree.ElementTree as ET
>>> import xml.etree.cElementTree as cET
>>> repr(ET.ElementTree('tag'))
'<Element tag at b7cf506c>'
>>> repr(cET.ElementTree('tag')
"<Element 'tag' at 0xb7c266f8>"
The quoting around the tag name is missing from ElementTree.
This inconsistency seems pointless.
Attached patch changes ElementTree to match cElementTree behaviour, and
adds a test.
|
|||
| msg89053 - (view) | Author: Neil Muller (Neil Muller) | Date: 2009-06-07 20:13 | |
Same issue affects python 3k - the patch applies there cleanly as well. |
|||
| msg99405 - (view) | Author: Florent Xicluna (flox) * ![]() |
Date: 2010-02-16 13:11 | |
Fixed with upstream. See #6472. |
|||
| msg100864 - (view) | Author: Florent Xicluna (flox) * ![]() |
Date: 2010-03-11 14:59 | |
Fixed in trunk with #6472. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:49 | admin | set | github: 50479 |
| 2010-03-11 14:59:13 | flox | set | status: open -> closed superseder: Update ElementTree with upstream changes messages: + msg100864 dependencies:
- Update ElementTree with upstream changes |
| 2010-02-16 13:11:28 | flox | set | priority: normal nosy:
+ flox dependencies:
+ Update ElementTree with upstream changes |
| 2009-06-08 05:07:35 | jerith | set | nosy:
+ jerith |
| 2009-06-07 20:13:56 | Neil Muller | set | messages: + msg89053 |
| 2009-06-07 15:39:46 | hodgestar | set | nosy:
+ hodgestar |
| 2009-06-07 15:32:43 | russell | set | nosy:
+ russell |
| 2009-06-07 14:08:15 | Neil Muller | create | |
