[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2010-08-03 Thread Uli Kunitz
Uli Kunitz added the comment: Here is a patch that handles all 4 examples in the last comment correctly and survives the Python test suite on Linux (Ubuntu 9.04 x86-64). -- keywords: +patch Added file: http://bugs.python.org/file18350/ElementTree.patch

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2010-08-03 Thread Uli Kunitz
Uli Kunitz added the comment: I believe handling of TextIOWrapper streams is broken in xml.etree.ElementTree.ElementTree.write(). First example: import sys from xml.etree import ElementTree element = ElementTree.fromstring("""foobar""") element_tree = E

[issue9458] xml.etree.ElementTree.write(): encoding handling problems

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : If one wants to use the encoding parameter of ElementTree.write() the file must be opened with "wb". Without encoding parameter normal files can be used, but the should be opened with the encoding "UTF-8", because otherwise this may create

[issue9457] Wrong URL in Python-3.2a1/README

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : The URL http://docs.python.org/dev/3.2/whatsnew/3.2.html is wrong. It should be replaced with http://docs.python.org/dev/whatsnew/3.2.html. -- assignee: d...@python components: Documentation messages: 112548 nosy: d...@python, kune priority: normal

[issue3744] make altinstall installs pydoc instead of pydoc3.0

2008-09-01 Thread Uli Kunitz
New submission from Uli Kunitz <[EMAIL PROTECTED]>: make altinstall in Python3.0-b3 doesn't install pydoc as pydoc3.0. Renaming pydoc to pydoc3.0 doesn't create any issues. -- components: Installation messages: 72219 nosy: kune severity: normal status: open title: