[PEAK] PEAK-Rules and PyPy

PJ Eby pje at telecommunity.com
Tue Oct 16 12:22:58 EDT 2012


On Tue, Oct 16, 2012 at 11:18 AM, Alain Poirier
<alain.poirier at net-ng.com> 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.  ;-)


More information about the PEAK mailing list