Problems using struct pack/unpack in files, and reading them.

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Nov 16 01:15:23 EST 2015


Ian Kelly wrote:
> Unary integer division seems pretty silly since the only possible results
> would be 0, 1 or -1.

Ints are not the only thing that // can be applied to:

 >>> 1.0//0.01
99.0

-- 
Greg



More information about the Python-list mailing list