Serhiy Storchaka added the comment:

Here are two alternative patches that fix the crash.

The first patch adds checks for as_integer_ratio() result. The only 
disadvantage is that error messages are quite arbitrary and differ from error 
messages in Python version.

----------
keywords: +patch
Added file: 
http://bugs.python.org/file42781/decimal_from_float_check_result.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26974>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to