Re: [docs] Provide some examples for usage of ElementTree methods/attributes (issue 15586)

Thank you Eli and Ezio for your comments. I have made changes per your suggestions and will upload the patch now. http://bugs.python.org/review/15586/diff/5683/Doc/library/xml.etree.elementt... File Doc/library/xml.etree.elementtree.rst (right): http://bugs.python.org/review/15586/diff/5683/Doc/library/xml.etree.elementt... Doc/library/xml.etree.elementtree.rst:69: tree = ET() I apologize. I originally wrote examples that ran and then saw that the development version of the docs already had examples, so I attempted to change over mine to match. On 2012/08/09 09:44:44, eli.bendersky wrote:
http://bugs.python.org/review/15586/diff/5683/Doc/library/xml.etree.elementt... Doc/library/xml.etree.elementtree.rst:73: Reading the file from a remote URL:: I guess the only point of confusion I saw is that when parsing from a file (as a above), rather than taking a file object, parse takes the filename in the current working directory. I'll go ahead and remove it though, unless you think this point is valid. On 2012/08/09 09:44:44, eli.bendersky wrote: those will
work.
http://bugs.python.org/review/15586/diff/5683/Doc/library/xml.etree.elementt... Doc/library/xml.etree.elementtree.rst:159: ... tree.write('output.xml') I'm not sure from the code review tool which line you mean, though I think it is 159. Let me know if I'm wrong. On 2012/08/09 10:51:48, ezio.melotti wrote:
Leave an empty line before this (same with the following examples).
participants (1)
-
ellisd23@gmail.com