Java Integer.ParseInt translation to python

jose isaias cabrera cabrera at wrc.xerox.com
Mon Jan 31 20:47:41 EST 2005


Yes, that's my problem.  I don't want to go through the java stuff. :-)

Thanks.


----- Original Message ----- 
From: "Bill Mill" <bill.mill at gmail.com>
To: "jose isaias cabrera" <jicman at cinops.xerox.com>
Cc: <python-list at python.org>
Sent: Monday, January 31, 2005 7:28 PM
Subject: Re: Java Integer.ParseInt translation to python


> Jose,
>
> On Mon, 31 Jan 2005 19:23:35 -0500, jose isaias cabrera
> <jicman at cinops.xerox.com> wrote:
>>
>> Greetings!
>>
>> I've looked through the internet (not long, though) but I have not been 
>> able
>> to find a python translation to
>>
>> buffer[0] = (byte)Integer.parseInt(string,16);
>
> Tell me what this does, give me an example or two, and I'll translate
> it for you. I don't feel like going to read the java docs to figure it
> out.
>
> You probably want to look at the built-in int() function though. Type
> help(int) at the python prompt.
>
> Peace
> Bill Mill
> bill.mill at gmail.com
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 




More information about the Python-list mailing list