Message312539
While I do fully agree with not documenting all exceptions, I'd like to point out a major difference in the case of "unhashable in dict".
It differs from the general case where an exception means the function is unable to return a meaningful result, beacuse it easily COULD return False as its documentation states. The exception is raised by a design decision, not by necessity. That makes it special.
A single sentence like "A hashable key is precondition of all dict operations." would explain the behaviour well.
That's all I wanted to say. Thank you. |
|
Date |
User |
Action |
Args |
2018-02-22 06:56:24 | xitop | set | recipients:
+ xitop, rhettinger, methane, docs@python |
2018-02-22 06:56:24 | xitop | set | messageid: <1519282584.9.0.467229070634.issue32899@psf.upfronthosting.co.za> |
2018-02-22 06:56:24 | xitop | link | issue32899 messages |
2018-02-22 06:56:24 | xitop | create | |
|