[Python-ideas] isinstance(Decimal(), Real) -> False?

random832 at fastmail.us random832 at fastmail.us
Wed Aug 28 13:14:40 CEST 2013


On Wed, Aug 28, 2013, at 4:25, Michele Lacchia wrote:
> How can isinstance(d, Real) imply isinstance(d, Complex)? Can you
> elaborate
> a little more?
> It makes no sense to me, since the set of real numbers is a subset of the
> complex one.

I'm not sure what your question is, since that's precisely why it does
imply it.


More information about the Python-ideas mailing list