Java Integer.ParseInt translation to python

Bill Mill bill.mill at gmail.com
Mon Jan 31 19:28:51 EST 2005


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



More information about the Python-list mailing list