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

Steven D'Aprano steve at pearwood.info
Mon Nov 16 07:11:49 EST 2015


On Mon, 16 Nov 2015 05:15 pm, Gregory Ewing wrote:

> 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


Good catch!



-- 
Steven




More information about the Python-list mailing list