On Sun, Oct 11, 2020 at 11:04 PM Wes Turner <wes.tur...@gmail.com> wrote:

> (and the proposed Python implementation of IEEE-754's alternative to
> ZeroDivisionError)
>

Is anyone actually proposing this (i.e. changing how Python handles
division by zero, or other float exceptions) ?

There IS a proposal on the table to add math.inf and math.nan to builtins,
which is the only one I know about (and I'm supposed to help write a PEP
for, which has stalled out) But while there has been a bunch of discussion,
I don't know that anyone has actually proposed anything.

But if so -- could whoever it is write the proposal down? (Ideally in a new
thread)


>  this be an appropriate migration strategy for implementing IEEE-754
> inf/+inf/-inf:
>
> from __future__ import floatinfinity
>

FWIW, if a change were to be made, I'd rather it be some kind of float
error handling context: either a global setting, like numpy's, or a context
manager. With, of course, the default behavior just like it's been forever.

-CHB

-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/4ULLXW66QVKSGKOHYZWM57T4WDKBW4IZ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to