[Python-ideas] PEP 3155 - Qualified name for classes and functions

Antoine Pitrou solipsis at pitrou.net
Fri Nov 4 22:53:06 CET 2011


On Fri, 4 Nov 2011 13:49:23 -0700
Guido van Rossum <guido at python.org> wrote:
> 
> Hm. Both 'f.g' and 'f().g' for f().__qname__ are misleading, since both
> look like valid expressions but neither will actually retrieve the intended
> object.

Agreed.

> Alternatively perhaps I could live with 'f.<locals>.g' and
> 'xyzzy.<locals>.f.<locals>.g'.

Ah, thanks! I like this one.

Regards

Antoine.





More information about the Python-ideas mailing list