Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r58077:e5b2826ed555
Date: 2012-10-12 19:02 +0200
http://bitbucket.org/pypy/pypy/changeset/e5b2826ed555/
Log: Kill this complicated logic that crashes in
module.unicodedata.test.test_unicodedata because it's wrong when
generalizing.
diff --git a/pypy/annotation/unaryop.py b/pypy/annotation/unaryop.py
--- a/pypy/annotation/unaryop.py
+++ b/pypy/annotation/unaryop.py
@@ -39,13 +39,7 @@
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit