Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81101
| 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> |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Date | 2014-11-20 11:06 -0700 |
| Subject | Re: python 2.7 and unicode (one more time) |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16038.1416506849.18130.python-list@python.org> (permalink) |
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.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python 2.7 and unicode (one more time) Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-20 11:06 -0700
csiph-web