[Python-ideas] Should decimal.InvalidOperation subclass ValueError?

Stefan Krah stefan at bytereef.org
Sun May 22 10:35:50 EDT 2016

Steven D'Aprano <steve at ...> writes:
[snipping excessively, since gmane.org started to lecture on this.]
> The custom exception handling will  continue to work the same way
> it does now, and people who expect Decimal("spam") to raise ValueError
> will also be satisfied.

They won't be if they do setcontext(ExtendedContext).

Stefan Krah

More information about the Python-ideas mailing list