Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100031 > unrolled thread

Re: Unicode failure

Started byTerry Reedy <tjreedy@udel.edu>
First post2015-12-05 01:12 -0500
Last post2015-12-05 01:12 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Unicode failure Terry Reedy <tjreedy@udel.edu> - 2015-12-05 01:12 -0500

#100031 — Re: Unicode failure

FromTerry Reedy <tjreedy@udel.edu>
Date2015-12-05 01:12 -0500
SubjectRe: Unicode failure
Message-ID<mailman.221.1449295994.14615.python-list@python.org>
On 12/4/2015 11:15 PM, D'Arcy J.M. Cain wrote:
> On Fri, 4 Dec 2015 22:49:49 +0000
> Albert-Jan Roskam <sjeik_appie@hotmail.com> wrote:
>> I think you need to use a raw unicode string, ur

Nope.  The 'r' prefix does not disable unicode escapes.

>>>>> unicodedata.name(ur'\u2122')
>> 'TRADE MARK SIGN'

If if did, the string above would have 6 chars instead of 1 and the 
above would not work.

> That seems to work in 2.x but not 3.x.

'u' was restored in 3.3 as a do-nothing prefix, but the combination 'ur' 
was not.

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web