Java Integer.ParseInt translation to python
pythonista at gmail.com
Mon Jan 31 19:26:39 EST 2005
On Mon, 31 Jan 2005 19:23:35 -0500, jose isaias cabrera
<jicman at cinops.xerox.com> wrote:
> I've looked through the internet (not long, though) but I have not been able
> to find a python translation to
> buffer = (byte)Integer.parseInt(string,16);
> Has anyone ported any java programs to python and has translated this?
> any help would be greatly appreciated.
buffer = int(string, 16)
Saint of Mild Amusement, Evil Genius, Big Geek
quine = ['print "quine =",quine,"; exec(quine)"'] ; exec(quine)
More information about the Python-list