Hallo, I found another difference in bahaviour between py.py and pypy-c with my set implementation enabled. The 'ior' operator in pypy-c does not behave as expected. My first thought was, that somehow the rdict.update method does not work as expected, but translator/goal/targetrdicttest2.py behaves, as it should, so there goes that theory. I have no idea whatsoever, where to look next. Stephan --------------------- py.py ----------------------------------------- [stephan@bach pypy]$ bin/py.py Loading grammar /home/stephan/projects/pypy-dist/pypy/interpreter/pyparser/data/Grammar2.5a faking <type 'module'> faking <type 'file'> fake-wrapping interp file <open file '<stdout>', mode 'w' at 0xb7f82068> fake-wrapping interp file <open file '<stderr>', mode 'w' at 0xb7f820b0> fake-wrapping interp file <open file '<stdin>', mode 'r' at 0xb7f82020> PyPy 0.8.0 in StdObjSpace on top of Python 2.4.1 (startuptime: 2.31 secs)
w1 = 'test' w2 = 'stat' s = set(w1) t = set(w2) s set(['s', 'e', 't']) t set(['a', 's', 't']) s |= t s set(['a', 's', 'e', 't']) s = set(w1) s &= t s set(['s', 't'])
--------------------- pypy-c --------------------------------------- [stephan@bach stephan]$ pypy-c debug: entry point starting debug: argv -> pypy-c debug: importing code debug: calling code.interact() Python 2.4.1 (pypy 0.8.0 build 26169) on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)
w1 = 'test' w2 = 'stat' s = set(w1) t = set(w2) s set(['s', 'e', 't']) t set(['a', 's', 't']) s |= t s set(['s', 'e', 't']) s = set(w1) s &= t s set(['s', 't'])