In article <[email protected]>, Steven D'Aprano <[email protected]> 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 > > <[email protected]> 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? -- https://mail.python.org/mailman/listinfo/python-list
