On 31 January 2016 at 21:41, Albert-Jan Roskam wrote:
>> >
>> >
>> > You're looping over all pairs of locales:
>> >
>> > Suppose there are N locales and M is sys.maxunicode. The number of
>> > pairs of locales is N*(N-1)/2 which grows like N**2. For each pair you
>> > loop over M characters so the
> From: oscar.j.benja...@gmail.com
> Date: Fri, 29 Jan 2016 16:32:57 +
> Subject: Re: [Tutor] lc_ctype and re.LOCALE
> To: sjeik_ap...@hotmail.com
> CC: tutor@python.org
>
> On 28 January 2016 at 20:23, Albert-Jan Roskam
> wrote:
> >
> > Out of curi
> From: eryk...@gmail.com
> Date: Fri, 29 Jan 2016 07:14:07 -0600
> Subject: Re: [Tutor] lc_ctype and re.LOCALE
> To: tutor@python.org
> CC: sjeik_ap...@hotmail.com
>
> On Thu, Jan 28, 2016 at 2:23 PM, Albert-Jan Roskam
> wrote:
> > Out of curiosity, I wrote the t
> From: sjeik_ap...@hotmail.com
> To: oscar.j.benja...@gmail.com
> Date: Sun, 31 Jan 2016 19:56:21 +
> Subject: Re: [Tutor] lc_ctype and re.LOCALE
> CC: tutor@python.org
>
>
> > From: oscar.j.benja...@gmail.com
> > Date: Fri, 29 Jan 2016 16:32:57 +
>
On 28 January 2016 at 20:23, Albert-Jan Roskam wrote:
>
> Out of curiosity, I wrote the throw-away script below to find a character
> that is classified (--> LC_CTYPE) as digit in one locale, but not in another.
> I ran it with 5000 locale combinations in Python 2 but did not find any
> (somebod
On Thu, Jan 28, 2016 at 2:23 PM, Albert-Jan Roskam
wrote:
> Out of curiosity, I wrote the throw-away script below to find a character
> that is classified
> (--> LC_CTYPE) as digit in one locale, but not in another.
The re module is the wrong tool for this. The re.LOCALE flag is only
for byte st
Hi,
Out of curiosity, I wrote the throw-away script below to find a character that
is classified (--> LC_CTYPE) as digit in one locale, but not in another.
I ran it with 5000 locale combinations in Python 2 but did not find any
(somebody shut down my computer!). I just modified the code so it al