context managers inline?

Paul Rubin no.email at nospam.invalid
Fri Mar 11 02:30:49 EST 2016


Jussi Piitulainen <jussi.piitulainen at helsinki.fi> writes:
>         return ModeIO(f.read())

These suggestions involving f.read() assume the file contents are small
enough to reasonably slurp into memory.  That's unlike the original
where "load" receives a stream and might process it piecewise.



More information about the Python-list mailing list