Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5153
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Genstein <genstein@invalid.invalid> |
| Newsgroups | comp.lang.python |
| Subject | Re: py3k buffered IO - flush() required between read/write? |
| Date | Wed, 11 May 2011 20:08:08 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 22 |
| Message-ID | <iqemrg$jp4$1@dont-email.me> (permalink) |
| References | <iqedg8$k5a$7@dont-email.me> <mailman.1422.1305138322.9059.python-list@python.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 11 May 2011 19:08:32 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="oYObvNZEMVqT2dHU4s8kZQ"; logging-data="20260"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/j1Ebqkj2karyGAPuTUhlxc9b1ndSGMjw=" |
| User-Agent | Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
| In-Reply-To | <mailman.1422.1305138322.9059.python-list@python.org> |
| Cancel-Lock | sha1:3Du4R8S6uJs2lnpy4IJZuXpUBbw= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5153 |
Show key headers only | View raw
On 11/05/2011 19:24, Terry Reedy wrote:
> writing and reading. If you want others to look at this more, you should
> 1) produce a minimal* example that demonstrates the questionable
> behavior, and 2) show the comparative outputs that raise your question.
Thanks for a quick response. Perhaps I was being unclear - in py3k,
given the following code and assuming no errors arise:
> f = open("foo", "w+b")
> f.write(b'test')
> f.seek(0)
> print(f.read(4))
What is the printed result supposed to be?
i) b'test'
ii) never b'test'
iii) platform dependent/undefined/other
All the best,
-eg.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
py3k buffered IO - flush() required between read/write? Genstein <genstein@invalid.invalid> - 2011-05-11 17:27 +0100
Re: py3k buffered IO - flush() required between read/write? Terry Reedy <tjreedy@udel.edu> - 2011-05-11 14:24 -0400
Re: py3k buffered IO - flush() required between read/write? Genstein <genstein@invalid.invalid> - 2011-05-11 20:08 +0100
Re: py3k buffered IO - flush() required between read/write? Terry Reedy <tjreedy@udel.edu> - 2011-05-11 17:38 -0400
Re: py3k buffered IO - flush() required between read/write? Genstein <genstein@invalid.invalid> - 2011-05-12 14:30 +0100
Re: py3k buffered IO - flush() required between read/write? Terry Reedy <tjreedy@udel.edu> - 2011-05-12 15:44 -0400
Re: py3k buffered IO - flush() required between read/write? Genstein <genstein@invalid.invalid> - 2011-05-12 21:38 +0100
Re: py3k buffered IO - flush() required between read/write? "Martin P. Hellwig" <martin.hellwig@gmail.com> - 2011-05-11 23:24 +0000
csiph-web