Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73294
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python's numeric tower |
| Date | 2014-06-15 13:28 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-671447.13284415062014@news.panix.com> (permalink) |
| References | <539d0a40$0$29988$c3e8da3$5496439d@news.astraweb.com> <mailman.11068.1402818363.18130.python-list@python.org> <539dbcbe$0$29988$c3e8da3$5496439d@news.astraweb.com> |
In article <539dbcbe$0$29988$c3e8da3$5496439d@news.astraweb.com>, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > On Sun, 15 Jun 2014 01:22:50 -0600, Ian Kelly wrote: > > > 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 > > Well, that surprises and disappoints me, but thank you for the answer. Why would you expect Decimal to be a subclass of Complex?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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