On Sat, Sep 05, 2020 at 11:01:33AM +0300, Serhiy Storchaka wrote:
> 05.09.20 06:52, Christopher Barker пише:
> > I am a -0 on this, but I think it was Greg Ewing that presented a real
> > use case: 
> > 
> > There is no way to use literal_eval that gets you an inf (or NaN value).
> 
> ast.literal_eval('1e1000')

I don't think that's a language guarantee though. It should work in 
Python interpreters that have IEEE-754 floats (the majority of 
platforms), but I wouldn't expect it to work everywhere.

Does it work in MicroPython on small systems?


-- 
Steve
_______________________________________________
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/TPFOTT7UYU6A7LN2TCISD7CJY5TRWPAR/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to