[issue38574] Dataclasses documentation should show the necessary imports

2019-10-24 Thread Leon Matthews
New submission from Leon Matthews : In the code sample documentation for other modules we show the necessary imports, we should do the same for dataclasses. For example, the very first example uses the `dataclass` decorator without importing it first. It should read:: from dataclasses

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-26 Thread Leon Matthews
Leon Matthews pyt...@lost.co.nz added the comment: Thank you Éric and Ezio. I'll produce a patch to convert the javadoc to docstrings this week, then submit it here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14006

[issue14006] Improve the documentation of xml.etree.ElementTree

2012-02-21 Thread Leon Matthews
Leon Matthews l...@lost.co.nz added the comment: The ElementTree.py module has good JavaDoc-style function-level documentation, but as it's not in docstring format, it can't be seen from the interactive help. I'd be willing to convert the current comments into docstrings, as long as I

[issue14078] Add 'sourceline' property to xml.etree Elements

2012-02-21 Thread Leon Matthews
New submission from Leon Matthews l...@lost.co.nz: The lxml implementation of the ElementTree API puts a `sourceline` property onto every Element object, which I recently found useful when producing diagnostic messages. I think it would be a useful improvement to make the standard library's

[issue6715] xz compressor support

2009-09-20 Thread Leon Matthews
Changes by Leon Matthews l...@lost.co.nz: -- nosy: +leonov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing

[issue6541] SpooledTemporaryFile Cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews l...@lost.co.nz: -- title: SpooledTemporaryFile operates differently to TemporaryFile - SpooledTemporaryFile Cleanups ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6541

[issue6541] SpooledTemporaryFile cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews l...@lost.co.nz: -- title: SpooledTemporaryFile Cleanups - SpooledTemporaryFile cleanups ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6541

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-21 Thread Leon Matthews
New submission from Leon Matthews l...@lost.co.nz: According the docs for the tempfile module, SpooledTemporaryFile() should operate exactly as TemporaryFile() does. However, while playing around trying to learn the module I found a couple of places where this is not the case: import tempfile