Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21043
| Date | 2012-02-29 09:54 -0500 |
|---|---|
| From | Dave Angel <d@davea.name> |
| Subject | Re: On u'Unicode string literals' (Py3) |
| References | <92580c23-775d-4b10-9986-1b1abb1f673f@d17g2000vba.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.296.1330527259.3037.python-list@python.org> (permalink) |
Just who are you replying to? On 02/29/2012 08:45 AM, jmfauth wrote: > For those who do not know: > The u'' string literal trick has never worked in Python 2. > No trick there. If you have something explicit to say, then say it. >>>> sys.version > '2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]' Why then does the subject line say Py3 ? >>>> print u'Un oeuf à zéro EURO uro' You're testing three things here, so there's no telling which might be wrong. Your source encoding, the implicit str() conversion for unicode, and the particular terminal you're printing it on. It'd be amazing if all three were right, unless you're on Linux. > Un uf à zéro uro > jmf -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
On u'Unicode string literals' (Py3) jmfauth <wxjmfauth@gmail.com> - 2012-02-29 05:45 -0800 Re: On u'Unicode string literals' (Py3) Dave Angel <d@davea.name> - 2012-02-29 09:54 -0500 Re: On u'Unicode string literals' reintroduction (Py3) jmfauth <wxjmfauth@gmail.com> - 2012-02-29 07:17 -0800
csiph-web