Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #50528

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

References <CAPxRSnZBP1Dr91xw5GwtYX2+BKnNONi2AJ8vwp7sf4wp3W1m8Q@mail.gmail.com> <CAE_Hg6ZFq5Qf_7NFbcJWhTvPuDohAvn1uyNgOyVh+iBzKrHEWA@mail.gmail.com> <CAN1F8qWp9GPq8dx7uOOOFRn1rg3A+X+Z+V+kAQ3EOpchNnye1A@mail.gmail.com> <CAPxRSnbBp2zbLQfL+MB3y9mWnmZqis_sWe9=n-SoFXknfwtUtQ@mail.gmail.com> <CAPTjJmrg+hYLaLzfniAWa=BFRfRVU3=sSaH8=6xMBV==4rdB+A@mail.gmail.com>
Date 2013-07-13 00:53 +1000
Subject Re: [Python-ideas] float('∞')=float('inf')
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4635.1373640804.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Jul 13, 2013 at 12:52 AM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sat, Jul 13, 2013 at 12:43 AM, Gerald Britton
> <gerald.britton@gmail.com> wrote:
>> Man I don't know how you are doing this!  I just tried:
>>
>> float('<greek letter pi>') and got
>>
>> Value error: could not convert string to float '<greek letter pi>'
>>
>> For that matter, I can't figure out how to type the greek letter for
>> pi in gmail!  Guess I have some things to learn.
>>
>> So, if Python doesn't recognize the symbol for pi, why should it
>> recognize the one for infinity?
>
> Considering that Python can't represent π in a float anyway, I
> wouldn't be too bothered. And what else? float('τ') for twice that
> value? Not really necessary imho.
>
> ChrisA

Take no notice of me going insane over here. Nothing to see, move
along, these are not the neurons you're looking for!

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: [Python-ideas] float('∞')=float('inf') Chris Angelico <rosuav@gmail.com> - 2013-07-13 00:53 +1000

csiph-web