Tim Peters <t...@python.org> added the comment:

[Steven]
> I think the second argument should also be optional, so
> that nextafter(x) returns the next representable float.

That's why the name sucks - there are, in general, two adjacent floats, so 
"next" is ambiguous.  I expect you intend that y default to math.inf, which 
would make one-argument `nextafter(x)` a spelling of `nextUp(x)`.  Fine by me!  
That's probably the one I want most often.

----------

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

Reply via email to