[pypy-dev] Patches?

Ben Young ben at transversal.com
Wed Jun 30 12:08:38 CEST 2004


I have been following the pypy-dev mailing list for some time, as well as 
maintaining a anon svn checkout of the pypy source and am really excited by 
this project (in fact it has inspired me to write my own experimental 
language in python along similar lines!). I was just wondering whether the 
project is considered stable enough to accept patches and/or bug reports from 
people who are not directly developers (i.e me!). I have been playing with 
getting pypy to run some of my own python programs, and although it seems to 
get pretty close there are a couple of issues. 

The first is in appspace/operator.py where if you import this in the trivial 
object space then is gives errors about modifying a dictionary while 
iterating over it. This can be fixed by the following patch

 Index: appspace/operator.py
--- appspace/operator.py        (revision 5402)
+++ appspace/operator.py        (working copy)
@@ -164,7 +164,7 @@

 # ugh:
 import types as _types
-for n in globals():
+for n in list(globals()):
     v = globals()[n]
     if isinstance(v, _types.FunctionType):
         globals()[n] = staticmethod(v)

The second is in pprint. If you do 

>>>> import pprint
>>>> pprint.pprint([])

you get a massive traceback which I haven't yet quite worked out a fix  for.

Thanks for your help!

Ben Young

More information about the Pypy-dev mailing list