[issue21910] File protocol should document if writelines must handle generators sensibly
Dan Haffey
report at bugs.python.org
Tue Mar 8 22:00:24 EST 2016
Dan Haffey added the comment:
+1, I just lost an hour-plus compute job to this. It sure violates POLA. I've been passing large generators to file.writelines since about as long as generators have existed, so I never would have guessed that a class named "StreamWriter" of all things wouldn't, you know, stream its writelines argument.
----------
nosy: +dhaffey
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21910>
_______________________________________
More information about the Python-bugs-list
mailing list