I really give up

Martin v. Löwis loewis at informatik.hu-berlin.de
Wed Oct 2 18:27:46 CEST 2002


"piter" <tojopiter at yahoo.com> writes:

> I tried it also. Doesn't work...

It works fine for me. In a C program, if I do

  printf("%x\n", make_hash("Hallo",45));

I get

53589e48

When I do

print hex(make_hash("Hallo",45))

with the posted Python function, I get

0x53589E48L

Seems close enough to me...

Regards,
Martin



More information about the Python-list mailing list