On Sun, Jun 8, 2014 at 10:48 AM, Chris Angelico <ros...@gmail.com> wrote: > Except that it's even more complicated than that, because hasattr > wasn't defined in your module, so it has a different set of globals. > In fact, this would mean that hasattr would become quite useless.
hasattr is a builtin, so it has no globals at all. It would have to use the calling scope for UFCS resolution as in my example implementation. -- https://mail.python.org/mailman/listinfo/python-list