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

Mark McEahern marklists at mceahern.com
Wed Sep 18 18:41:31 EDT 2002


[yaipa]
> 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.

Cheers,

// mark

-





More information about the Python-list mailing list