Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.05; 'subject:data': 0.07; 'subject:string': 0.09; 'python': 0.11; 'driscoll': 0.16; 'guessing': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'rings': 0.16; 'subject:changing': 0.16; 'string': 0.18; 'wrote:': 0.21; 'header:In-Reply-To:1': 0.22; 'header:User-Agent:1': 0.23; "doesn't": 0.30; 'fact': 0.31; 'subject: (': 0.33; 'byte': 0.33; 'bytes': 0.33; 'there': 0.35; 'things': 0.36; "i'm": 0.36; 'subject:)': 0.36; 'header:X -Complaints-To:1': 0.36; 'received:org': 0.38; 'being': 0.39; 'doing': 0.39; "can't": 0.39; 'to:addr:python-list': 0.39; 'to:addr:python.org': 0.40; 'yes,': 0.63; 'strings': 0.66; 'is.': 0.67; 'imaginary': 0.84; 'received:2': 0.84; 'received:as13285.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: "convert" string to bytes without changing data (encoding) Date: Wed, 28 Mar 2012 21:44:14 +0100 References: <9tg21lFmo3U1@mid.dfncis.de> <4f73504c$0$29981$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-97-76-12.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:11.0) Gecko/20120312 Thunderbird/11.0 In-Reply-To: X-Antivirus: avast! (VPS 120328-1, 28/03/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332967498 news.xs4all.nl 6856 [2001:888:2000:d::a6]:43697 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22313 On 28/03/2012 20:43, Ross Ridge wrote: > Evan Driscoll wrote: >> So yes, you can say that pretending there's not a mapping of strings to >> internal representation is silly, because there is. However, there's >> nothing you can say about that mapping. > > I'm not the one labeling anything as being silly. I'm the one labeling > the things as bullshit, and that's what you're doing here. I can in > fact say what the internal byte string representation of strings is any > given build of Python 3. Just because I can't say what it would be in > an imaginary hypothetical implementation doesn't mean I can never say > anything about it. > > Ross Ridge > Bytes is bytes and strings is strings And the wrong one I have chose Let's go where they keep on wearin' Those frills and flowers and buttons and bows Rings and things and buttons and bows. No guessing the tune. -- Cheers. Mark Lawrence.