[PEAK] PEAK-Rules and PyPy
Marcin Tustin
marcin.tustin at gmail.com
Tue Oct 16 12:26:45 EDT 2012
Please see:
http://docs.python.org/library/__builtin__.html?highlight=__builtins__
*CPython implementation detail:* Most modules have the name __builtins__ (note
> the 's') made available as part of their globals. The value of__builtins__ is
> normally either this module or the value of this modules’s __dict__ attribute.
> Since this is an implementation detail, it may not be used by alternate
> implementations of Python.
On Tue, Oct 16, 2012 at 12:22 PM, PJ Eby <pje at telecommunity.com> wrote:
> 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. ;-)
> _______________________________________________
> PEAK mailing list
> PEAK at eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/peak
>
--
Marcin Tustin
Tel: +44 (0) 7773 787 105 (UK)
+1 917 553 3974 (US)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20121016/219cbe66/attachment.html
More information about the PEAK
mailing list