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: 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 Date: Sun, 15 Jun 2014 01:22:50 -0600 Subject: Re: Python's numeric tower To: Python 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Sat, Jun 14, 2014 at 8:51 PM, Steven D'Aprano 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