[docs] [issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)
Steven Barker
report at bugs.python.org
Sat Feb 21 02:03:08 CET 2015
Steven Barker added the comment:
Another Stack Overflow user pointed out that the DictWriter's writerows implementation (in pure Python) unnecessarily converts whatever its argument is into a list in memory before passing it on to the builtin writer.writerows method which would accept any iterable type. Probably it should be changed to use map or a generator expression instead.
So, perhaps this issue isn't purely documentation, but actually a small behavior enhancement as well.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23495>
_______________________________________
More information about the docs
mailing list