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
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
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
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
Changes by Leon Matthews :
--
nosy: +leonov
___
Python tracker
<http://bugs.python.org/issue6715>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Leon Matthews :
--
title: SpooledTemporaryFile cleanups -> SpooledTemporaryFile breakages
___
Python tracker
<http://bugs.python.org/issue6541>
___
_
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
Changes by Leon Matthews :
--
title: SpooledTemporaryFile Cleanups -> SpooledTemporaryFile cleanups
___
Python tracker
<http://bugs.python.org/issue6541>
___
_
Changes by Leon Matthews :
--
title: SpooledTemporaryFile operates differently to TemporaryFile ->
SpooledTemporaryFile Cleanups
___
Python tracker
<http://bugs.python.org/iss
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
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
11 matches
Mail list logo