Author: Ronan Lamy <[email protected]>
Branch: no-class-specialize
Changeset: r80569:5d9032ae97f5
Date: 2015-11-06 19:07 +0000
http://bitbucket.org/pypy/pypy/changeset/5d9032ae97f5/
Log: backout 26259e6794f : not useful and caused weird issues in
normalizecalls.py
diff --git a/rpython/annotator/bookkeeper.py b/rpython/annotator/bookkeeper.py
--- a/rpython/annotator/bookkeeper.py
+++ b/rpython/annotator/bookkeeper.py
@@ -360,7 +360,7 @@
if pyobj.__module__ == '__builtin__': # avoid making classdefs
for builtin types
result = self.getfrozen(pyobj)
else:
- return self._new_classdesc(pyobj)
+ result = ClassDesc(self, pyobj)
elif isinstance(pyobj, types.MethodType):
if pyobj.im_self is None: # unbound
return self.getdesc(pyobj.im_func)
@@ -417,12 +417,6 @@
def valueoftype(self, t):
return annotationoftype(t, self)
- def _new_classdesc(self, pycls):
- result = ClassDesc(self, pycls)
- self.descs[pycls] = result
- result._init_classdef()
- return result
-
def get_classpbc_attr_families(self, attrname):
"""Return the UnionFind for the ClassAttrFamilies corresponding to
attributes of the given name.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit