[pypy-svn] r49007 - pypy/branch/remove-extcompiler-rctypes/pypy/translator/c
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Nov 23 20:30:40 CET 2007
Author: cfbolz
Date: Fri Nov 23 20:30:40 2007
New Revision: 49007
Modified:
pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/pyobj.py
Log:
the is_method dictionary is also always empty now, kill it too.
Modified: pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/pyobj.py
==============================================================================
--- pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/pyobj.py (original)
+++ pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/pyobj.py Fri Nov 23 20:30:40 2007
@@ -42,7 +42,6 @@
self.import_hints = {} # I don't seem to need it any longer.
# leaving the import support intact, doesn't hurt.
self.name_for_meth = {} # get nicer wrapper names
- self.is_method = {}
def nameof(self, obj, debug=None):
if debug:
@@ -221,8 +220,7 @@
try:
fwrapper = gen_wrapper(func, self.translator,
- newname=self.name_for_meth.get(func, func.__name__),
- as_method=func in self.is_method)
+ newname=self.name_for_meth.get(func, func.__name__))
except NoStandardGraph:
return self.skipped_function(func)
pycfunctionobj = self.uniquename('gfunc_' + func.__name__)
@@ -611,8 +609,7 @@
def nameof_graph(self, g):
newname=self.name_for_meth.get(g, g.func.__name__)
- fwrapper = gen_wrapper(g, self.translator, newname=newname,
- as_method=g in self.is_method)
+ fwrapper = gen_wrapper(g, self.translator, newname=newname)
pycfunctionobj = self.uniquename('gfunc_' + newname)
self.wrappers[pycfunctionobj] = g.func.__name__, self.db.get(fwrapper), g.func.__doc__
return pycfunctionobj
More information about the Pypy-commit
mailing list