Statement evals as False in my IDE and True elsewhere
Chris Angelico
rosuav at gmail.com
Thu Jan 30 17:55:35 EST 2014
On Fri, Jan 31, 2014 at 9:48 AM, CM <cmpython at 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
More information about the Python-list
mailing list