On this page
decimal.InvalidContext
Prev: decimal.Inexact | Up: decimal | Next: decimal.InvalidOperation
Rel: decimal.Clamped, decimal.Context, decimal.ConversionSyntax, decimal.Decimal
Ref: docs.python.org โ decimal.InvalidContext
Tags: #public #python3 #stdlib #decimal
Import
import decimal
from decimal import InvalidContext
Signature & Overview
decimal.InvalidContext(...)
decimal.InvalidContext class.
Methods & Attributes
InvalidContext.add_note(self, note, /)โ Add a note to the exceptionInvalidContext.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import decimal
assert issubclass(decimal.InvalidContext, decimal.DecimalException)
Gotchas
- Indicates an unknown rounding mode or out-of-range context setting.
REPL Inspect
from decimal import InvalidContext
help(InvalidContext)
Linked from
Related notes
- tuts/python3/stdlib_module/decimal/Inexact Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/InvalidOperation Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Clamped Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Context Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/ConversionSyntax Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Decimal Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/decimal/DecimalException shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DecimalTuple shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionByZero shared tags: #decimal, #stdlib