E&S CVS Commit: PEAK-Rules - Begin implementation of RuleDispatch
emulation API
pje at eby-sarna.com
pje at eby-sarna.com
Sun Jan 13 13:27:46 EST 2008
Author: pje
Date: Sun Jan 13 13:27:45 2008
New Revision: 2482
URL: http://svn.eby-sarna.com?rev=2482&view=rev
Log:
Begin implementation of RuleDispatch emulation API
To use it, use "from peak.rules import dispatch" in
place of importing the dispatch module. Once you've
imported the module once, other imports from dispatch.*
should work correctly... unless the API in question
isn't emulated. Right now, there is no PyProtocols
support (i.e. interfaces don't work), and single-
dispatch functions can't be cloned.
Added:
PEAK-Rules/peak/rules/dispatch.py (with props)
Modified:
PEAK-Rules/test_rules.py
More information about the source-changes
mailing list