A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/304902.html below:

Convert from unicode to int

Convert from unicode to int Convert from unicode to intGrant Edwards grante at visi.com
Thu Sep 22 09:59:35 EDT 2005
On 2005-09-22, Tor Erik Sønvisen <tores at stud.cs.uit.no> wrote:
> Hi
>
> Is there any simpler way to convert a unicode numeric to an int than:
>
> int(u'1024'.encode('ascii'))

>>> int(u'1024')
1024

Didn't that work for you when you tried it?

-- 
Grant Edwards                   grante             Yow!  FIRST, I'm covering
                                  at               you with OLIVE OIL and
                               visi.com            PRUNE WHIP!!

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4