Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67006
| Date | 2014-02-24 13:53 -0800 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) |
| References | <mailman.7328.1393271688.18130.python-list@python.org> <87ha7o9r2q.fsf@elektro.pacujo.net> <1393275888.21136.87279633.092F472A@webmail.messagingengine.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7332.1393281705.18130.python-list@python.org> (permalink) |
On 02/24/2014 01:04 PM, random832@fastmail.us wrote: > On Mon, Feb 24, 2014, at 15:46, Marko Rauhamaa wrote: >> That is: >> >> 1. ineffient (encode/decode shuffle) >> >> 2. unnatural (strings usually have no place in protocols) > > That's not at all clear. Why _aren't_ these protocols considered text > protocols? Why can't you add a string directly to headers? Because text is a high-order abstraction. You don't store text in files, you don't transmit text over the wire or through the air -- those actions are done with a lower abstraction, that of bytes. You're framework may allow you to add a string, but under the covers it's converting to bytes -- at which point is up to the framework. -- ~Ethan~
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python 3.5, bytes, and %-interpolation (aka PEP 461) Ethan Furman <ethan@stoneleaf.us> - 2014-02-24 11:54 -0800
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Marko Rauhamaa <marko@pacujo.net> - 2014-02-24 22:46 +0200
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) random832@fastmail.us - 2014-02-24 16:04 -0500
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Marko Rauhamaa <marko@pacujo.net> - 2014-02-25 00:18 +0200
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-24 23:55 +0000
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) wxjmfauth@gmail.com - 2014-02-25 00:07 -0800
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-25 08:29 +0000
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Ethan Furman <ethan@stoneleaf.us> - 2014-02-24 13:53 -0800
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-02-24 23:55 +0000
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Ethan Furman <ethan@stoneleaf.us> - 2014-02-24 16:10 -0800
Re: Python 3.5, bytes, and %-interpolation (aka PEP 461) Steven D'Aprano <steve@pearwood.info> - 2014-02-25 07:29 +0000
csiph-web