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

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


Dennis Lee Bieber wrote:
> 	And we'd be left looking for a symbol for bitwise inversion.

Who needs negation when you have bitwise inversion?

minusx = ~x + 1

I know, it doesn't work for floats, but that's just
a simple matter of defining ~ on floats appropriately...

-- 
Greg



More information about the Python-list mailing list