Message121375
I presume you mean this:
if self._is_special:
if self.is_snan():
- raise TypeError('Cannot hash a signaling NaN value.')
+ raise ValueError('Cannot hash a signaling NaN value.')
My understanding is that while exception messages are not part of the API, the class is, even if not documented. If the decimal spec or doc says the above should be ValueError, then TypeError might be fixable in a bug release. Otherwise, I think I would change it only in 3.2 with a version-changed note in the doc. But Raymond is the decider on this. |
|
Date |
User |
Action |
Args |
2010-11-17 18:38:27 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, amaury.forgeotdarc, mark.dickinson, skrah |
2010-11-17 18:38:27 | terry.reedy | set | messageid: <1290019107.31.0.244447336574.issue10356@psf.upfronthosting.co.za> |
2010-11-17 18:38:25 | terry.reedy | link | issue10356 messages |
2010-11-17 18:38:25 | terry.reedy | create | |
|