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

2012-07-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 51b5ee7cfa3b by Eli Bendersky in branch 'default': Issue #9458: clarify the documentation of ElementTree.write with regards to the type of the stream expected for a given encoding

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

2012-07-14 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I agree with Serhiy that this is more of a documentation/understanding issue than a real bug. I've clarified the doc of ElementTree.write a bit to make it explicit what stream is expected for 'write'. -- assignee: - docs@python

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

2012-07-13 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: ElementTree write works with two kinds of output -- binary and text. The difference between them is only determined by encoding argument. If encoding is unicode, then output is text, else it is binary. There is no other way for filename

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

2012-07-06 Thread Dave Abrahams
Dave Abrahams d...@boostpro.com added the comment: I won't get to this, FYI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

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

2012-07-05 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Please make sure that the patch(es) apply cleanly to 3.3, since this is the version I'll be focusing on. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458

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

2012-06-16 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___ Python-bugs-list

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

2012-04-20 Thread Dave Abrahams
Dave Abrahams d...@boostpro.com added the comment: These bugs are annoying. How does one convert a set of examples into a patch? Do you mean you want these to become test cases? -- nosy: +dabrahams ___ Python tracker rep...@bugs.python.org

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

2012-04-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes. See the devguide if you need more info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___

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

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. The examples in your message need to be converted to a patch that applies to 3.2 or 2.7, so that we can reproduce the bug before fixing it. -- stage: - test needed versions: +Python 2.7, Python 3.3

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

2011-11-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

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

2010-08-03 Thread Uli Kunitz
Uli Kunitz uli.kun...@googlemail.com 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(foobarfoobar/bar/foo) element_tree =

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

2010-08-03 Thread Uli Kunitz
Uli Kunitz uli.kun...@googlemail.com 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