Java Integer.ParseInt translation to python

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


On Mon, 31 Jan 2005 19:23:35 -0500, jose isaias cabrera
<jicman at> 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

You probably want to look at the built-in int() function though. Type
help(int) at the python prompt.

Bill Mill
bill.mill at

More information about the Python-list mailing list