Terry J. Reedy <tjre...@udel.edu> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10356>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to