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


Groups > comp.lang.python > #73414

Re: can I get 0./0. to return nan instead of exception?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.035
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'python.': 0.02; 'cc:addr :python-list': 0.11; 'exception?': 0.16; 'nan': 0.16; 'subject:exception': 0.16; 'wrote:': 0.18; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'raising': 0.36; 'url:listinfo': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'subject:can': 0.39; 'url:mail': 0.40; 'to:addr:gmail.com': 0.65; 'subject:. ': 0.67; 'behavior': 0.77; 'subject:get': 0.81
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 :cc:content-type; bh=+hw1LCuZtQNOgSrXd1hcXQJb703fLRWpzSlbtliV36I=; b=cXTUWvcPFvjfoRWX/CrsxM58tMuJCQEMG/RoKZnfwz6ts5cstORPXmJUUK9iA716CX oUBtHNGwRLWKM0wSoL302/bff5wwQrWIWS+shU7eDXD3rQMngLEhkHJ4/6zgEQJ2sdQV xF6L/TUm/2x0arkNdqoAfs4u1x1Qz/Ryn8eIHNo3Sq3TsqpYPFzO22crDBwLdkTQYmJm OC5WD/rqyignQs0mup15/mWatwAT5DR5h//gnWCr624H5MsDf2lag4TQXrfxNc6luK92 4PcK46ybLc1zHbgysW+B9So1cPIO6crikx9uUUpN1bjOtWsR0PGGuIK3NQlhq6ElJf3n k1YQ==
MIME-Version 1.0
X-Received by 10.58.248.2 with SMTP id yi2mr266658vec.48.1403177509914; Thu, 19 Jun 2014 04:31:49 -0700 (PDT)
In-Reply-To <lnug3b$k2v$1@ger.gmane.org>
References <lnug3b$k2v$1@ger.gmane.org>
Date Thu, 19 Jun 2014 07:31:49 -0400
Subject Re: can I get 0./0. to return nan instead of exception?
From Joel Goldstick <joel.goldstick@gmail.com>
To Neal Becker <ndbecker2@gmail.com>
Content-Type multipart/alternative; boundary=e89a8f2355af090fde04fc2eb963
Cc python-list@python.org
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11142.1403177512.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1403177512 news.xs4all.nl 2972 [2001:888:2000:d::a6]:52582
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73414

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Jun 19, 2014 7:05 AM, "Neal Becker" <ndbecker2@gmail.com> wrote:
>
> Can I change behavior of py3 to return nan for 0./0. instead of raising an
> exception?

There is no nan in python.
>
> --
> https://mail.python.org/mailman/listinfo/python-list

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


Thread

Re: can I get 0./0. to return nan instead of exception? Joel Goldstick <joel.goldstick@gmail.com> - 2014-06-19 07:31 -0400

csiph-web