When we say 'One obvious way...', do we mean 'generally obvious' or does that matter?

Mark McEahern marklists at mceahern.com
Thu Sep 19 00:41:31 CEST 2002

> I LIKE the below code snippet. While it might be Pythonic, it will
> only be 'obvious' to a Python programmer with some experience under
> his/her belt.

Actually (as the author of the code snippet), I would say it's decidedly
unpythonic.  Why go through contortions to restrict access to base class
methods?  Nonetheless, that's what the original poster wanted.

Besides, I needed to fill in gaps in my understanding of metaclasses and
this seemed like the perfect opportunity.


// mark


More information about the Python-list mailing list