Uniform Function Call Syntax (UFCS)

Ian Kelly ian.g.kelly at gmail.com
Sun Jun 8 13:08:50 EDT 2014


On Sun, Jun 8, 2014 at 10:48 AM, Chris Angelico <rosuav at 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.



More information about the Python-list mailing list