[pypy-svn] r13905 - pypy/dist/pypy/rpython

tismer at codespeak.net tismer at codespeak.net
Sat Jun 25 20:36:16 CEST 2005


Author: tismer
Date: Sat Jun 25 20:36:15 2005
New Revision: 13905

Modified:
   pypy/dist/pypy/rpython/rdict.py
Log:
commented the specialization trick

Modified: pypy/dist/pypy/rpython/rdict.py
==============================================================================
--- pypy/dist/pypy/rpython/rdict.py	(original)
+++ pypy/dist/pypy/rpython/rdict.py	Sat Jun 25 20:36:15 2005
@@ -361,6 +361,11 @@
 def dum_values(): pass
 def dum_items():pass
 
+# this is an implementation of keys(), values() and items()
+# in a single function.
+# note that by specialization on v_func, three different
+# and very efficient functions are created.
+
 def ll_kvi(v_dic, LISTPTR, v_func):
     res = rlist.ll_newlist(LISTPTR, v_dic.num_items)
     dlen = len(v_dic.entries)



More information about the Pypy-commit mailing list