Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101764

Re: Writing a stream of bytes

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Writing a stream of bytes
Date Fri, 15 Jan 2016 16:23:43 +0000
Lines 24
Message-ID <mailman.21.1452875068.15297.python-list@python.org> (permalink)
References <n7b4os$9j2$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 2c4jm3bzkjPh2sF0owLYMg2TSEdE20yuZk6oFiHJXO5g==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'bytes.': 0.07; '(instead': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Writing': 0.09; 'wrong,': 0.09; 'jmp': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'bytes': 0.18; 'say,': 0.18; 'language': 0.19; 'lawrence': 0.22; 'struct': 0.22; 'file.': 0.22; 'bit': 0.23; 'help.': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'least': 0.27; "i'm": 0.30; "i'd": 0.31; 'language.': 0.32; 'clarify': 0.33; 'stream': 0.33; 'could': 0.35; 'clear': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'mean': 0.38; 'sure': 0.39; 'along': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'charset:windows-1252': 0.62; 'more': 0.63; 'our': 0.64; 'pythonistas,': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host client1.abs-limited.com
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
In-Reply-To <n7b4os$9j2$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101764

Show key headers only | View raw


On 15/01/2016 15:55, jmp wrote:
> Hi pyple !

In the UK it's "purple", a bit like "color" is wrong, it's "colour".

>
>
> I'd like to write a stream of bytes into a file. I'd like to use the
> struct (instead of bytearray) module because I will have to write more
> than bytes.
>

If you'd like to clarify what you mean I'm sure we could help.  "a 
stream of bytes" but "have to write more than bytes" is as clear as UK 
mud, which is at least always better than, say, US mud.  Unless you 
don't like either, in which case it could be forked, so we could have 
mud 2.8, along with RickedMud.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Writing a stream of bytes Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-01-15 16:23 +0000
  Re: Writing a stream of bytes Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-01-16 10:27 +1300

csiph-web