Permalink
Browse files

Revert "implement __hash__() and __eq__() for ctypedefs by delegating…

… to the base type"

    This breaks comparing typedef types and results
    in funky things such as getting temporaries of
    different types.

This reverts commit e3838e4.
  • Loading branch information...
1 parent 033c5cd commit b1e791101ec06c2990b66a03cbac141d7404d66c @markflorisson markflorisson committed May 10, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 Cython/Compiler/PyrexTypes.py
@@ -333,12 +333,6 @@ def cast_code(self, expr_code):
def __repr__(self):
return "<CTypedefType %s>" % self.typedef_cname
- def __hash__(self):
- return hash(self.typedef_base_type)
-
- def __eq__(self, other):
- return other == self.typedef_base_type
-
def __str__(self):
return self.typedef_name

0 comments on commit b1e7911

Please sign in to comment.