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


Groups > comp.lang.python > #50527

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'subject:: [': 0.04; 'charset:iso-8859-7': 0.04; 'subject:Python': 0.06; 'error:': 0.07; 'float': 0.07; 'string': 0.09; 'imho.': 0.09; "subject:')": 0.09; 'python': 0.11; "wouldn't": 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:ideas': 0.16; 'tried:': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'recognize': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; 'figure': 0.32; 'guess': 0.33; 'could': 0.34; "can't": 0.35; 'convert': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'doing': 0.36; 'should': 0.36; 'so,': 0.37; 'too': 0.37; 'represent': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'subjectcharset:utf-8': 0.72; 'jul': 0.74; 'greek': 0.84; 'learn.': 0.84; 'this!': 0.93; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=9zyYCabMj0XxycwWl8mKWjOnKnsLmIwKTs7/iLyJO9s=; b=pXk8Dotf6adKQc4r03k4nlhUMAj1sex1NJ8xoOBXgAABe4qHd0ksN1MpbhPKVF+U+m sNc9G8xiLOZ3XkHLfZOMO0bqewkY+UsifmN6ncOVCh0RwO5YstVWpEA03o2ZmZqNWQxc lxemNLK7QO//YxBeZmbnI5nao+r9dGLWLJUit58k+J1h8TgXy1DRmZZ7iypCpR+EdX9X n83YX0SiOAL6O/iJwqp+YW0zo9ds4BKaN+qwPQwqr+dtChYjobDzxVNC/eZvJve7ljKI 8+ZVMhGf8P9ubGFNdFMzcH56KbQo6TDZ5TH32O/TQgvJoVRJ8yrtHMSWTceWY6mO4ont ZwqA==
MIME-Version 1.0
X-Received by 10.58.214.105 with SMTP id nz9mr24335625vec.58.1373640752485; Fri, 12 Jul 2013 07:52:32 -0700 (PDT)
In-Reply-To <CAPxRSnbBp2zbLQfL+MB3y9mWnmZqis_sWe9=n-SoFXknfwtUtQ@mail.gmail.com>
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 Sat, 13 Jul 2013 00:52:32 +1000
Subject Re: [Python-ideas] float('∞')=float('inf')
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-7
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4634.1373640755.3114.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1373640755 news.xs4all.nl 15899 [2001:888:2000:d::a6]:41749
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:50527

Show key headers only | View raw


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


Thread

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

csiph-web