Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31934 > unrolled thread
| Started by | Travis Griggs <travisgriggs@gmail.com> |
|---|---|
| First post | 2012-10-23 08:13 -0700 |
| Last post | 2012-10-23 08:13 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Style help for a Smalltalk-hack Travis Griggs <travisgriggs@gmail.com> - 2012-10-23 08:13 -0700
| From | Travis Griggs <travisgriggs@gmail.com> |
|---|---|
| Date | 2012-10-23 08:13 -0700 |
| Subject | Re: Style help for a Smalltalk-hack |
| Message-ID | <mailman.2668.1351005210.27098.python-list@python.org> |
On Oct 22, 2012, at 6:33 PM, MRAB <python@mrabarnett.plus.com> wrote:
> Another way you could do it is:
>
> while True:
> chunk = byteStream.read(4)
> if not chunk:
> break
> ...
>
> And you could fetch multiple signatures in one read:
>
> signatures = list(struct.unpack('>{}I'.format(valveCount), byteStream.read(4 * valueCount)))
Thanks, both great ideas. Still does the read/decode slightly different between the different sites, but at least it's localized better. Much appreciated.
--
Travis Griggs
"History has a habit of changing the people who think they are changing it." -Terry Pratchett
Back to top | Article view | comp.lang.python
csiph-web