Commits

Armin Rigo  committed e5b2826

Kill this complicated logic that crashes in
module.unicodedata.test.test_unicodedata because it's wrong when
generalizing.

  • Participants
  • Parent commits d2ffb51
  • Branches kill-someobject

Comments (0)

Files changed (1)

File pypy/annotation/unaryop.py

     def type(obj, *moreargs):
         if moreargs:
             raise Exception, 'type() called with more than one argument'
-        if obj.is_constant():
-            if isinstance(obj, SomeInstance):
-                r = SomePBC([obj.classdef.classdesc])
-            else:
-                r = immutablevalue(obj.knowntype)
-        else:
-            r = SomeType()
+        r = SomeType()
         bk = getbookkeeper()
         fn, block, i = bk.position_key
         annotator = bk.annotator