Skip Montanaro added the comment:

I agree writeheader() should have returned the value of writerow(), but have no 
opinion on the more esoteric stuff you're discussing. I think you could argue 
that adding the "return" would be a bug fix.

Personally, I long ago got in the habit of using the writerow(dict(zip(fh, 
fh))) idiom, didn't catch on at the time that writeheader() was even available 
in 2.7, and still just use the idiom most of the time. It's a one-liner. The OP 
could easily use that in contexts where writeheader() doesn't do the right 
thing.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27497>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to