hex int and string
- From: luca72 <lucaberto@xxxxxxxxx>
- Date: Fri, 27 Nov 2009 00:54:30 -0800 (PST)
hello i have a problem
i have this
str = 'D3'
and i need to trasform in 0xd3 type int and not type string how i can
do this?
if i do
hex(int(str,16) ) i obtain a string and this is not what i need.
thanks Luca
.
- Follow-Ups:
- Re: hex int and string
- From: jessica
- Re: hex int and string
- From: Ben Finney
- Re: hex int and string
- Prev by Date: Re: extending optionparser to accept multiple comma delimited input for one arg
- Next by Date: Re: hex int and string
- Previous by thread: how to format a python source file with tools?
- Next by thread: Re: hex int and string
- Index(es):
Relevant Pages
|