[issue5463] Remove deprecated features from struct module
Andreas Schawo
report at bugs.python.org
Mon Mar 30 21:15:12 CEST 2009
Andreas Schawo <andreas.schawo at gmail.com> added the comment:
Doesn't took much time. Even nothing happend.
PyLong_AsLong trys to convert to int bevor raising an Exception.
I'm not sure if struct.pack('l', x) should raise an Exception when a
float is given. In case of string there is one.
I first did PyLong_Check the parameter and raised an StructError. But I
removed this from the patch.
I leaved the documentation untouched. Nobody will notice the changes.
I increased the version number. Whether we overwork the Errors prior
3.1b or not we could leave it at 0.3.
----------
Added file: http://bugs.python.org/file13482/cleanup_float_coerce_patch.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5463>
_______________________________________
More information about the Python-bugs-list
mailing list