From e0b55720b049c12b3d988614a202fa52b370bea9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 1 Nov 2014 13:38:22 -0400 Subject: call hash(), not __hash__() --- mop/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mop') diff --git a/mop/__init__.py b/mop/__init__.py index b75fd67..5df6ab8 100644 --- a/mop/__init__.py +++ b/mop/__init__.py @@ -21,7 +21,7 @@ def execute_method(body, invocant, args, kwargs): # our mop infrastructure UNDERLYING_CLASSES = {} def python_class_for(c, name=None): - key = c.__hash__() + key = hash(c) if key not in UNDERLYING_CLASSES.keys(): if name is None: name = c.name() -- cgit v1.2.3-54-g00ecf