Decorators: an outsider's perspective

Paul Morrow pm_mon at yahoo.com
Tue Aug 17 09:34:26 EDT 2004


Anthony Baxter wrote:
> On Mon, 16 Aug 2004 13:17:42 -0400, Paul Morrow <pm_mon at yahoo.com> wrote:
> 
>>Q: What if I had a metaclass that would make any method private whose
>>name started with two underbars (by, I dunno, mangling the name
>>somehow)?  Would you consider that a hack too? ;-)
> 
> 
> Damn straight - that's awful. Why on earth would someone implement
> that? 
> 

I expected a :-) after your comment (as the behavior I describe is 
already being performed by the Python system)...

 >
 > Sorry, burned out on decorators for now.
 >

That's cool.




More information about the Python-list mailing list