Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104587
| Path | csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Paul Rubin <no.email@nospam.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: context managers inline? |
| Date | Thu, 10 Mar 2016 23:30:49 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 6 |
| Message-ID | <87lh5pxyhi.fsf@nightsong.com> (permalink) |
| References | <nbselg$he9$1@ger.gmane.org> <mailman.154.1457641060.15725.python-list@python.org> <lf560wtczq9.fsf@ling.helsinki.fi> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx02.eternal-september.org; posting-host="6f8cc70e6892455e89d230a40ec2704b"; logging-data="22981"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vR35/M6vh0fBFW+vcNHme" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
| Cancel-Lock | sha1:w3Uk6zLc+QOYnfGkk4SjDf7MR34= sha1:NOFL6Ki0mJoDM0r6Ezpt2jXVCCY= |
| Xref | csiph.com comp.lang.python:104587 |
Show key headers only | View raw
Jussi Piitulainen <jussi.piitulainen@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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: context managers inline? Chris Angelico <rosuav@gmail.com> - 2016-03-11 07:17 +1100
Re: context managers inline? Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-11 08:09 +0200
Re: context managers inline? Paul Rubin <no.email@nospam.invalid> - 2016-03-10 23:30 -0800
Re: context managers inline? Jussi Piitulainen <jussi.piitulainen@helsinki.fi> - 2016-03-11 11:16 +0200
csiph-web