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


Groups > comp.lang.python > #73286

Re: Python's numeric tower

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'third-party': 0.04; 'subject:Python': 0.06; 'well-known': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'examples': 0.20; '>>>': 0.22; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'libraries': 0.31; 'steven': 0.31; 'anyone': 0.31; 'but': 0.35; 'received:google.com': 0.35; '14,': 0.36; 'false': 0.36; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:n 10': 0.64
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=hETvELjVC+bGB9wQJHAkAP4XW/wea+fF+PaDbU0m/xg=; b=ne6h/ZiQkDa1ow9K0c4HfYsBN+2nQCiajovpPSJI3IA/y9sBo95Ypc6DQAtsYb8wc4 i2UiN4TJG30IzErbh5L19Y4gmXFgecW8MswwHszahvHERhrHylGZIjaXTyvq/RM0yB4+ x+pjF0mbmlg4TUcfktxYtNtrzWU5YLlyTTxZw5lT0QDMaWP2+mxAZgIBRs2KVWoeBq7d 6Kq2ofoZ2C28+UV9IluedktsRb5TAGzdoMUk7pcyFZI8witp60LsbASFXzVD0xoLIHVY YlubKhvEb2p4yhefWj52KVDp9z+V6CZTD0OWVkGsrN2SW3cWELwttAHzUO9ECxjn6h3j xbCA==
X-Received by 10.236.134.74 with SMTP id r50mr22165777yhi.2.1402817010861; Sun, 15 Jun 2014 00:23:30 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <539d0a40$0$29988$c3e8da3$5496439d@news.astraweb.com>
References <539d0a40$0$29988$c3e8da3$5496439d@news.astraweb.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Sun, 15 Jun 2014 01:22:50 -0600
Subject Re: Python's numeric tower
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.11068.1402818363.18130.python-list@python.org> (permalink)
Lines 10
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1402818363 news.xs4all.nl 2951 [2001:888:2000:d::a6]:53983
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:73286

Show key headers only | View raw


On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> Does anyone know any examples of values or types from the standard
> library or well-known third-party libraries which satisfies
> isinstance(a, numbers.Number) but not isinstance(a, numbers.Complex)?

>>> issubclass(decimal.Decimal, numbers.Number)
True
>>> issubclass(decimal.Decimal, numbers.Complex)
False

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


Thread

Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-15 02:51 +0000
  Re: Python's numeric tower Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-15 01:22 -0600
    Re: Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-15 15:33 +0000
      Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 13:28 -0400
        Re: Python's numeric tower Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-15 11:45 -0600
        Re: Python's numeric tower Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-16 00:38 +0000
          Re: Python's numeric tower Chris Angelico <rosuav@gmail.com> - 2014-06-16 11:02 +1000
            Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 21:57 -0400
              Re: Python's numeric tower Chris Angelico <rosuav@gmail.com> - 2014-06-16 12:04 +1000
                Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 22:17 -0400
                Re: Python's numeric tower Dan Sommers <dan@tombstonezero.net> - 2014-06-16 03:38 +0000
                Re: Python's numeric tower Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-06-16 09:29 +0100
                Re: Python's numeric tower Roy Smith <roy@panix.com> - 2014-06-15 23:48 -0400

csiph-web