Uniform Function Call Syntax (UFCS)
Ian Kelly
ian.g.kelly at gmail.com
Sun Jun 8 13:00:38 EDT 2014
On Sun, Jun 8, 2014 at 2:15 AM, jongiddy <jongiddy at gmail.com> wrote:
> One problem with your untested code, the superclasses would need to be checked before using UFCS, so the structure is:
>
> try:
> return super().__getattr__(attr)
> except AttributeError:
> # resolve using UFCS
And then if UFCS finds nothing, make sure the AttributeError gets reraised.
More information about the Python-list
mailing list