Mark Dickinson <[email protected]> added the comment:
Because (arguably) we don't want to be able to pack non-integral floats (or
Decimal instances, or ...) using integer formats:
>>> import struct
[56090 refs]
>>> struct.pack('L', 2.3)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
struct.error: required argument is not an integer
[56125 refs]
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue8300>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com