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/329231.html below:

Convert from unicode to int

Convert from unicode to int Convert from unicode to intMax M maxm at mxm.dk
Thu Sep 22 10:01:06 EDT 2005
Tor Erik Sønvisen wrote:
> Hi
> 
> Is there any simpler way to convert a unicode numeric to an int than:
> 
> int(u'1024'.encode('ascii'))


why doesn't:

     int(u'104')

work for you?


-- 

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science

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