At 04:00 PM 7/19/2007 -0400, Jonathan LaCour wrote: >I for one, as a committer on TurboGears, would absolutely love to see >a good, solid generic function capability integrated into the standard >library, and find PEP 3124 to completely cover my needs. There are >certainly things in the PEP that I do not have a use for, but nothing in >the PEP seems to be much of a stretch to me.
FYI, Jonathan, the version of PEAK-Rules that's in SVN implements everything that's currently in PEP 3124 except the Interface bits. It does not, however, implement RuleDispatch-style predicate expressions, just argument-isinstance tests. I'd hoped to have predicates done this month, but it's running a couple weeks behind. After it's done, I plan to throw together a RuleDispatch-style API over it, to make porting/testing easier, using something like "from peak.rules import dispatch" to get a module that fakes the RuleDispatch API (e.g. somefunc.when() instead of when(somefunc)). _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com