Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81123
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| 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.04; 'anyway.': 0.05; 'encoding': 0.05; 'encoded': 0.07; 'ascii': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:2.7': 0.09; 'language.': 0.14; 'blindly': 0.16; 'failure.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'str,': 0.16; 'subject:unicode': 0.16; 'unicode,': 0.16; 'subject:python': 0.16; 'language': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'header:User-Agent:1': 0.23; 'error': 0.23; 'unicode': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'am,': 0.29; "doesn't": 0.30; 'object.': 0.31; 'safely': 0.31; 'week.': 0.33; 'subject:time': 0.33; "i'd": 0.34; 'subject: (': 0.35; "can't": 0.35; 'subject:one': 0.36; 'nov': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'ian': 0.60; 'happen': 0.63; 'our': 0.64; 'subject:more': 0.64; 'charset:windows-1252': 0.65; '20,': 0.68; 'day': 0.76; 'received:btcentralplus.com': 0.84; 'received:86': 0.91; 'silent': 0.95 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
| Subject | Re: python 2.7 and unicode (one more time) |
| Date | Thu, 20 Nov 2014 20:59:58 +0000 |
| References | <m4kcu8$ta8$1@ger.gmane.org> <m4kn66$ma3$1@ger.gmane.org> <1416491999.209592.193345213.3A6FF9A4@webmail.messagingengine.com> <CAPTjJmr5NWMFCfU8jaNd2g2f9cQ1y+zO3qT7yVcC_m9vKXN6fw@mail.gmail.com> <1416505379.268157.193439717.66E319D4@webmail.messagingengine.com> <CALwzid=qc66rGfr2nVM19bK3GfNQ4PUj2=3nzp0bEGzfW--1CA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | host86-151-25-168.range86-151.btcentralplus.com |
| User-Agent | Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| In-Reply-To | <CALwzid=qc66rGfr2nVM19bK3GfNQ4PUj2=3nzp0bEGzfW--1CA@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16054.1416517215.18130.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1416517215 news.xs4all.nl 2972 [2001:888:2000:d::a6]:36502 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:81123 |
Show key headers only | View raw
On 20/11/2014 18:06, Ian Kelly wrote: > On Thu, Nov 20, 2014 at 10:42 AM, <random832@fastmail.us> wrote: >> and it means you can't safely >> blindly use %s with an unknown object. > > You can't safely do this anyway. Whether it's %s with a str and a > unicode, or %s with a unicode and a str, *something* is going to have > to be implicitly encoded or decoded, and if ascii doesn't happen to be > the correct encoding then the result will be either an error or a > silent failure. > All I know about this encoding/decoding malarky is that I'd prefer an error to a silent failure any day of the week. -- 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 | Next | Find similar | Unroll thread
Re: python 2.7 and unicode (one more time) Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-20 20:59 +0000
csiph-web