Neal Becker <[EMAIL PROTECTED]> writes: > What's wrong with this? > type(struct.unpack('l','\00'*8)[0]) > <type 'int'> > > Why I am getting 'int' when I asked for 'long'?
C longs are converted to Python integers; see the table on http://docs.python.org/lib/module-struct.html. If you really need the Python long, use long(...). -- http://mail.python.org/mailman/listinfo/python-list