[Python-ideas] float('∞')=float('inf')

Philipp A. flying-sheep at web.de
Sat Jul 13 19:25:32 CEST 2013


there is no such thing as a “slippery slope”. ∞ is special. it’s a symbol
for exactly one thing that happens to be the same one created using
float('inf') in python. the same holds for the vulgar fractions, but they
seem to be deprecated in unicode.

π is a greek letter commonly used in math to represent a number, but it’s
not its one responsibility to represent that number. you could define π to
mean something else if you’re evil (i’ve even seen it done for some angle:
let the angle between a and b be π), but you can’t redefine ∞.

so don’t be silly everyone. the question is if float('∞') should work and i
say “why the hell not”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130713/9579e596/attachment-0001.html>


More information about the Python-ideas mailing list