[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 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 <http://bugs.python.org/is

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

2012-02-21 Thread Leon Matthews
New submission from Leon Matthews : 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 Elemen

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

2012-02-21 Thread Leon Matthews
Leon Matthews 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 would

[issue6715] xz compressor support

2009-09-20 Thread Leon Matthews
Changes by Leon Matthews : -- nosy: +leonov ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6541] SpooledTemporaryFile breakages

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile cleanups -> SpooledTemporaryFile breakages ___ Python tracker <http://bugs.python.org/issue6541> ___ _

[issue6541] SpooledTemporaryFile cleanups

2009-07-22 Thread Leon Matthews
Leon Matthews added the comment: Some properties seem to be broken no matter if the underlying storage system is file or StringIO. Properties: encoding, newlines, and softspace And the method: xreadlines() I'm not sure what the correct behaviour should be (although I'm pretty sure

[issue6541] SpooledTemporaryFile cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile Cleanups -> SpooledTemporaryFile cleanups ___ Python tracker <http://bugs.python.org/issue6541> ___ _

[issue6541] SpooledTemporaryFile Cleanups

2009-07-22 Thread Leon Matthews
Changes by Leon Matthews : -- title: SpooledTemporaryFile operates differently to TemporaryFile -> SpooledTemporaryFile Cleanups ___ Python tracker <http://bugs.python.org/iss

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-22 Thread Leon Matthews
Leon Matthews added the comment: I've attached a patch to SpooledTemporaryFile (and its test class) to remove the suprising exceptions. SpooledTemporaryFile uses a io.StringIO for storage (in self._file) until it reaches a certain size (or rollover() is called), at which point it switches

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-21 Thread Leon Matthews
New submission from Leon Matthews : 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 tempf