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

Nathan Schneider nathan at cmu.edu
Sat Jul 13 19:30:09 CEST 2013


On Sat, Jul 13, 2013 at 1:25 PM, Philipp A. <flying-sheep at web.de> wrote:

> 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”
>
>
+1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130713/a892eeae/attachment.html>


More information about the Python-ideas mailing list