Terry Reedy <tjre...@udel.edu> writes:
> ...
>> The problem seems to come from my expectation that a file
>> is its own iterator and in python3 that is no longer true
>> for a NamedTemporaryFile.
> ...
>> Should this be considered a bug?
>
> No.  The doc for NamedTemporaryFile does not even claim that the
> return is iterable.

I think, it should: the name suggests that "NamedTemporaryFile" is
a "File" and therefore should behave like one.

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to