Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50527
| 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> |
|---|---|
| Date | 2013-07-13 00:52 +1000 |
| Subject | Re: [Python-ideas] float('∞')=float('inf') |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4634.1373640755.3114.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [Python-ideas] float('∞')=float('inf') Chris Angelico <rosuav@gmail.com> - 2013-07-13 00:52 +1000
csiph-web