Nice solution wanted: Hide internal interfaces

Ian Kelly ian.g.kelly at gmail.com
Mon Oct 29 15:09:57 EDT 2012


On Mon, Oct 29, 2012 at 10:58 AM, Johannes Bauer <dfnsonfsduifb at gmx.de> wrote:
> Ah, that's nice. I didn't know that nested classes could access their
> private members naturally (i.e. without using any magic, just with plain
> old attribute access).

There is nothing at all special about nested classes that is different
from non-nested classes.  All it affects is organization; instead of
classes A and B, you have classes A and A.B.



More information about the Python-list mailing list