[Python-Dev] PEP 0484 - the Numeric Tower

Sven R. Kunze srkunze at mail.de
Tue Oct 13 14:11:25 EDT 2015


On 13.10.2015 17:38, Raymond Hettinger wrote:
> Traceback (most recent call last):
>    File "<pyshell#1>", line 1, in <module>
>      Decimal('3.14') + 2.71828
> TypeError: unsupported operand type(s) for +: 'decimal.Decimal' and 'float'

Reminds me of 'int' and 'long'. Different but almost the same.

Best,
Sven


More information about the Python-Dev mailing list