On Tue, 07 Mar 2017 14:05:15 -0800, John Nagle wrote:
> How do I test if a Python 2.7.8 build was built for 32-bit Unicode?
sys.maxunicode will be 1114111 if it is a "wide" (32-bit) build and 65535
if it is a "narrow" (16-bit) build.
You can double-check with:
unichr(0x10) # will raise V
On 3/7/2017 5:05 PM, John Nagle wrote:
How do I test if a Python 2.7.8 build was built for 32-bit
Unicode? (I'm dealing with shared hosting, and I'm stuck
with their provided versions.)
If I give this to Python 2.7.x:
sy = u'\U0001f60f'
len(sy) is 1 on a Ubuntu 14.04LTS machine, but 2
On Wed, Mar 8, 2017 at 9:05 AM, John Nagle wrote:
>How do I test if a Python 2.7.8 build was built for 32-bit
> Unicode? (I'm dealing with shared hosting, and I'm stuck
> with their provided versions.)
>
> If I give this to Python 2.7.x:
>
> sy = u'\U0001f60f'
>
> len(sy) is 1 on a Ubuntu
How do I test if a Python 2.7.8 build was built for 32-bit
Unicode? (I'm dealing with shared hosting, and I'm stuck
with their provided versions.)
If I give this to Python 2.7.x:
sy = u'\U0001f60f'
len(sy) is 1 on a Ubuntu 14.04LTS machine, but 2 on the
Red Hat shared hosting machine.
:
> sonald wrote:
> > Hi,
> > I am using python2.4.1
> >
> > I need to pass russian text into python and validate the same.
> > Can u plz guide me on how to make my existing code support the
> > russian text.
> >
> > Is there any module that can be us
Fredrik Lundh wrote:
>
> what does the word "validate" mean here?
>
Let me explain our module.
We receive text files (with comma separated values, as per some
predefined format) from a third party.
for example account file comes as "abc.acc" {.acc is the extension for
account file as per our code}
sonald wrote:
> Hi,
> I am using python2.4.1
>
> I need to pass russian text into python and validate the same.
> Can u plz guide me on how to make my existing code support the
> russian text.
>
> Is there any module that can be used for unicode support in python?
>
"sonald" wrote:
> I have added the following line in the script
>
> # -*- coding: utf-8 -*-
that's good.
> I have also modified the site.py
that's bad, because this means that your code won't work on standard
Python installations.
> Now when I try to validate the data in the text file
> say ab
sonald schrieb:
> Fredrik Lundh wrote:
>>>http://www.google.com/search?q=python+unicode
>> (and before anyone starts screaming about how they hate RTFM replies, look
>> at the search result)
>>
>>
> Thanks!! but i have already tried this...
Tried - might be. But you certainly didn't understan
Fredrik Lundh wrote:
> >http://www.google.com/search?q=python+unicode
>
> (and before anyone starts screaming about how they hate RTFM replies, look
> at the search result)
>
>
Thanks!! but i have already tried this...
and let me tell you what i am trying now...
I have added the following li
>http://www.google.com/search?q=python+unicode
(and before anyone starts screaming about how they hate RTFM replies, look
at the search result)
--
http://mail.python.org/mailman/listinfo/python-list
"sonald" wrote:
> I need to pass russian text into python and validate the same.
> Can u plz guide me on how to make my existing code support the
> russian text.
>
> Is there any module that can be used for unicode support in python?
Python has built-in Unicode support
Hi,
I am using python2.4.1
I need to pass russian text into python and validate the same.
Can u plz guide me on how to make my existing code support the
russian text.
Is there any module that can be used for unicode support in python?
Incase of decimal numbers, how to handle "comma
13 matches
Mail list logo