Mark Dickinson <dicki...@gmail.com> added the comment:

I don't see a huge need for this.  In 2.6, 3.0 and higher, float(repr(x)) 
recovers x reliably across platforms 
(modulo the occasional system strtod bug), even when x is an infinity or nan.

It's true that using float() doesn't help if you want to eval the repr of a 
container with nans in it.  But in 
that situation it's not hard to prefix the eval with "nan = float('nan'); inf = 
float('inf')".

Pete, are you still interested in this?  Can you suggest a solution that 
doesn't mess up the float(repr(.)) round-
trip?  I don't really want to lose the float(repr(.)) round-trip.

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

Reply via email to