Re: Portrait of a "real life" __metaclass__

2007-11-11 Thread Mark Shroyer
On 2007-11-11, Jonathan Gardner <[EMAIL PROTECTED]> wrote: >> There isn't much difference between >> >> match_calendar_month(2007, 11, message) >> >> and >> >> m = CalendarMonthMatcher(2007, 11) >> m.match(message) > > Yes, there isn't a world of difference between the two. But there > is a w

Re: Portrait of a "real life" __metaclass__

2007-11-10 Thread Jonathan Gardner
On Nov 10, 3:34 am, Mark Shroyer <[EMAIL PROTECTED]> wrote: > On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > > What would I have done? I wouldn't have had an age matching class. I > > would have had a function that, given the datetime and a range > > specification, would return true o

Re: Portrait of a "real life" __metaclass__

2007-11-10 Thread Mark Shroyer
On 2007-11-10, Jonathan Gardner <[EMAIL PROTECTED]> wrote: > On Nov 9, 7:12 pm, Mark Shroyer <[EMAIL PROTECTED]> wrote: >> I guess this sort of falls under the "shameless plug" category, but >> here it is: Recently I used a custom metaclass in a Python program >> I've been working on, and I ended u

Re: Portrait of a "real life" __metaclass__

2007-11-09 Thread Jonathan Gardner
On Nov 9, 7:12 pm, Mark Shroyer <[EMAIL PROTECTED]> wrote: > I guess this sort of falls under the "shameless plug" category, but > here it is: Recently I used a custom metaclass in a Python program > I've been working on, and I ended up doing a sort of write-up on it, > as an example of what a "rea

Portrait of a "real life" __metaclass__

2007-11-09 Thread Mark Shroyer
I guess this sort of falls under the "shameless plug" category, but here it is: Recently I used a custom metaclass in a Python program I've been working on, and I ended up doing a sort of write-up on it, as an example of what a "real life" __metaclass__ might do for those who may never have seen su