> On 30 Dec 2019, at 05:55, Tim Peters <tim.pet...@gmail.com> wrote: > > [David] >> Has anyone actually ever used those available bits for the zillions of NaNs >> for >> anything good? > > Yes: in Python, many sample programs I've posted cleverly use NaN > bits to hide ASCII encodings of delightful puns ;-) > > Seriously? Not that I've seen. The _intent_ was that, e.g., quiet > NaNs could encode diagnostic information, such as the source code line > number of the operation that produced a qNaN. But I don't know that > anyone ever exploited that.
That sounds amazing! If python was the first to do this with the data then displayed in error messages it could really force other languages to play catch up. _______________________________________________ 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/REZY2FFQ6Z77TXIDTO7THVF65XQOUVUN/ Code of Conduct: http://python.org/psf/codeofconduct/