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 terry.reedy
Recipients amaury.forgeotdarc, mark.dickinson, rhettinger, skrah, terry.reedy
Date 2010-11-17.18:38:25
SpamBayes Score 1.875009e-05
Marked as misclassified No
Message-id <1290019107.31.0.244447336574.issue10356@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-17 18:38:27terry.reedysetrecipients: + terry.reedy, rhettinger, amaury.forgeotdarc, mark.dickinson, skrah
2010-11-17 18:38:27terry.reedysetmessageid: <1290019107.31.0.244447336574.issue10356@psf.upfronthosting.co.za>
2010-11-17 18:38:25terry.reedylinkissue10356 messages
2010-11-17 18:38:25terry.reedycreate