From: Frank T. <ft...@ne...> - 2001-12-04 04:31:28
|
I've finally finished what I would consider an alpha version of the aop.py submodule. It is documented, and has unittests for it. Ideally, I'd like to hear some comments on it, suggestions, etc, etc. There are a couple of advanced features I can think of, like complex pointcut definition like AspectJ can do (e.g., 'caught exception within foobar() method), but for right now, I think I have a workable alpha (oxymoron?). The documentation can be viewed via pydoc, and is quite large (and probably full of typos; I haven't proofread). Actually, the documentation is larger than the code, but given the complexity of the subject, I think its appropriate. I'd be glad to work with someone to try and get aop.py worked into Pythius or even another project, for I'm sure that working with aop.py will probably be a new, trying experience. The whole module is quite small (225 lines including whitespace?), but the key hindrance was finally figuring out what model I wanted. To run the unittests simply run "python aop-unittests.py" (gives a small report). To run the doctest tests, run "python aop.py" (should return empty).. -- Frank Tobin http://www.neverending.org/~ftobin/ |