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
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
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
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
___
___
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
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9458
___
___
Python-bugs-list
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
É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
___
É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
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9458
___
___
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 =
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
12 matches
Mail list logo