On Fri, Jan 31, 2014 at 9:48 AM, CM <cmpyt...@gmail.com> wrote:
> builtin_all = __builtins__.all
>
> but I got the error:
>
> AttributeError: 'dict' object has no attribute 'all'

Try using square brackets notation instead. Apparently your
__builtins__ is a dictionary, not a module, though I don't know why
(probably something to do with numpy, which I've never actually used).
But try this:

builtin_all = __builtins__["all"]

It might work.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to