-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed as not planned
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
Sometimes showing the type of the result can be helpful to debug:
class A:
def hash(self):
return exit
a = A()
m= {}
m[a] = 1
The new message is : "cannot use 'A' as a dict key (__hash__
method should return an integer, returned 'Quitter')"
Sometimes there may be one or more paths that __hash__
doesn't return an integer, show what was returned can be helpful to find the mistake.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement