Andreas Schawo <andreas.sch...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5463>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to