On Fri, Jan 31, 2014 at 4:05 PM, Terry Reedy <tjre...@udel.edu> wrote: > On 1/30/2014 5:55 PM, Chris Angelico wrote: >> >> 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 > > > For technical reasons Guido once explained and I have fogotten, it depends > on whether you are in main module or an imported module -- and maybe the > Python version.
Ah, okay. Anyway, the error message makes it clear. I love clear error messages. ChrisA -- https://mail.python.org/mailman/listinfo/python-list