[issue27497] csv module: Add return value to DictWriter.writeheader

STINNER Victor report at bugs.python.org
Wed Jul 13 17:32:21 EDT 2016


STINNER Victor added the comment:

Oh. I missed the django recipe to implement "streaming csv". It uses an
Echo object, its write() method returns its parameter.

This recipe looks like an abuse of the API, but I understand that there is
a need for a kind of "partial write": give control to I/O to the caller.

Maybe we should extend the API?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27497>
_______________________________________


More information about the Python-bugs-list mailing list