This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients docs@python, facundobatista, leewz, mark.dickinson, rhettinger, skrah, tim.peters
Date 2014-04-16.23:17:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20140416231734.GA20364@sleipnir.bytereef.org>
In-reply-to <20140416224551.GA20042@sleipnir.bytereef.org>
Content
The idea behind the list as the exception message is this:  If multiple
conditions would have raised the signal they are all listed, while the
"highest ranking" signal is the one that is ultimately raised.

>>> from decimal import *
>>> c = getcontext()
>>> for v in c.traps:
...     c.traps[v] = True
... 
>>> 
>>> Decimal(8) ** 1000000000000000
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
decimal.Overflow: [<class 'decimal.Overflow'>, <class 'decimal.Inexact'>, <class 'decimal.Rounded'>]

Exception precedence is listed here at the bottom of the page:

http://speleotrove.com/decimal/daexcep.html
History
Date User Action Args
2014-04-16 23:17:35skrahsetrecipients: + skrah, tim.peters, rhettinger, facundobatista, mark.dickinson, docs@python, leewz
2014-04-16 23:17:35skrahlinkissue21227 messages
2014-04-16 23:17:35skrahcreate