[pypy-svn] r47126 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Wed Oct 3 21:45:51 CEST 2007
Author: arigo
Date: Wed Oct 3 21:45:51 2007
New Revision: 47126
Modified:
pypy/dist/pypy/rpython/annlowlevel.py
Log:
The key has to be computed in this way - its purpose is to get the correct
specialization. I admit that I don't see how a None in this list can lead to a None
in graph.name, but the change I'm reverting was dangerous.
Modified: pypy/dist/pypy/rpython/annlowlevel.py
==============================================================================
--- pypy/dist/pypy/rpython/annlowlevel.py (original)
+++ pypy/dist/pypy/rpython/annlowlevel.py Wed Oct 3 21:45:51 2007
@@ -41,10 +41,7 @@
def lowlevelspecialize(funcdesc, args_s, key_for_args):
args_s, key, ignored, builder = flatten_star_args(funcdesc, args_s)
- if key is not None:
- key = [key]
- else:
- key = []
+ key = [key]
new_args_s = []
for i, s_obj in enumerate(args_s):
if i in key_for_args:
More information about the pypy-svn
mailing list