Message 29368 - Python tracker (original) (raw)

Logged In: YES user_id=139309

That wasn't really intentional, but the old behavior looks a bit suspect:

$ python2.4 -c "import struct; print repr(struct.pack('>H', 1.6))" '\x00\x01'

We could change it to check for floats and do a DeprecationWarning?