Re: Java Integer.ParseInt translation to python

2005-02-09 Thread jicman
John Machin wrote: > jose isaias cabrera wrote: > However some Java code (I can't believe that it was the Java code that > you posted) has printed NINE bytes which bear no relation that I can > see to any of the TWENTY bytes that the posted Java code should have > stowed in retBuf. I know what yo

Re: Java Integer.ParseInt translation to python

2005-02-09 Thread jicman
Nick Craig-Wood wrote: > When I try your code I get this... ... [clip] ... > Traceback (most recent call last): > File "", line 1, in ? > File "", line 4, in PrepareHash > TypeError: 'str' object is not callable > >>> > > You cant do byte(int(byte,16)) - byte is a string! So you haven't > post