Re: PEAK-Rules and PyPy
PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Tue, 16 Oct 2012 12:22:58 -0400
| Newsgroups | gmane.comp.python.peak |
|---|---|
| Message-ID | <CALeMXf6RHT6i3y8qLKANzY8wDie5rT+agrd4yGuXREBsdBfvRg@mail.gmail.com> |
On Tue, Oct 16, 2012 at 11:18 AM, Alain Poirier <alain.poirier-HPmRmcG/[email protected]> wrote: > File "/private/tmp/PEAK-Rules-0.5a1.dev-r2707/peak/rules/predicates.py", line 595, in _parse_string > b = CriteriaBuilder(engine.arguments, ctx.localdict, ctx.globaldict, __builtins__) > File "/private/tmp/PEAK-Rules-0.5a1.dev-r2707/peak/rules/codegen.py", line 334, in __init__ > dict([(k,self.Const(v)) for k,v in ns.iteritems()]) for ns in namespaces > AttributeError: 'module' object has no attribute 'iteritems' > > > Do you think it could be possible to have a working PyPy version of Peak Rules? It depends. It looks like the problem above is that __builtins__ in PyPy might be a module instead of a dictionary? If so, that's probably a bug in PyPy that needs to be fixed. There are likely to be other problems besides this one, but let's take them one at a time. ;-)