Re: [Python-3000] pep 3124 plans

2007-07-19 Thread Jonathan LaCour
And again, you can use predicate dispatch to regoster different error_handlers for different kinds of errors. I for one, as a committer on TurboGears, would absolutely love to see a good, solid generic function capability integrated into the standard library

Re: [Python-3000] Abilities / Interfaces

2006-11-25 Thread Jonathan LaCour
ful. I personally found generic functions to be quite easy to understand, but didn't truly begin to appreciate them until I started to use them. So, sure, it might have been a +1 vote, but it comes with the context that I have actually *used* both generic functions and interfaces

Re: [Python-3000] Abilities / Interfaces

2006-11-22 Thread Jonathan LaCour
functions (using RuleDispatch) in practice and find them to not only be hugely powerful, but much more pragmatic. Am I the only one out there who sees it this way? -- Jonathan LaCour http://cleverdevil.org ___ Python-3000 mailing list Python-3000@pytho

Re: [Python-3000] Metaclass syntax?

2006-05-02 Thread Jonathan LaCour
__metaclass__ = metaclass return MetaclassMixin ... and then I simply use this on my classes when I define them: class MyClass(of_type(SomeMetaclass)): ... I find this to be fairly useful, and simple. -- Jonathan LaCour