[pypy-svn] r40844 - pypy/dist/pypy/annotation

arigo at codespeak.net arigo at codespeak.net
Tue Mar 20 15:10:57 CET 2007


Author: arigo
Date: Tue Mar 20 15:10:56 2007
New Revision: 40844

Modified:
   pypy/dist/pypy/annotation/description.py
Log:
Argh.  Good spot pedronis.  Of course there is no test for this; I need
to write one even if it's a mess :-(



Modified: pypy/dist/pypy/annotation/description.py
==============================================================================
--- pypy/dist/pypy/annotation/description.py	(original)
+++ pypy/dist/pypy/annotation/description.py	Tue Mar 20 15:10:56 2007
@@ -749,11 +749,14 @@
                     break
         for desc in lst:
             if desc.flags != commonflags:
-                desc.bookkeeper.getmethoddesc(desc.funcdesc,
-                                              desc.originclassdef,
-                                              desc.selfclassdefs,
-                                              desc.name,
-                                              flags)
+                newdesc = desc.bookkeeper.getmethoddesc(desc.funcdesc,
+                                                        desc.originclassdef,
+                                                        desc.selfclassdefs,
+                                                        desc.name,
+                                                        flags)
+                del descs[desc]
+                descs[newdesc] = True
+
         # --- case 1 ---
         groups = {}
         for desc in descs:



More information about the Pypy-commit mailing list