Raymond Hettinger added the comment: My preference is to leave the Python implementation of from_float() as-is. Pure Python code is not obligated to defend itself against bizarre code. The C code however is obliged to not segfault.
---------- _______________________________________ 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