python 2.2 string conversion ?

Scott David Daniels Scott.Daniels at Acm.Org
Thu Jul 24 02:49:37 EDT 2003


ken wrote:
> I've been looking for a solution to a string to long conversion problem that
> I've run into
>>>>x = 'e10ea210'
>>>>print x
> e10ea210
>>>>y=long(x)
> 
How about:
	y = long(x, 16)





More information about the Python-list mailing list