[pypy-svn] r40836 - pypy/dist/pypy/doc

mwh at codespeak.net mwh at codespeak.net
Tue Mar 20 13:24:15 CET 2007


Author: mwh
Date: Tue Mar 20 13:24:13 2007
New Revision: 40836

Modified:
   pypy/dist/pypy/doc/aspect_oriented_programming.txt
Log:
fix rest


Modified: pypy/dist/pypy/doc/aspect_oriented_programming.txt
==============================================================================
--- pypy/dist/pypy/doc/aspect_oriented_programming.txt	(original)
+++ pypy/dist/pypy/doc/aspect_oriented_programming.txt	Tue Mar 20 13:24:13 2007
@@ -116,7 +116,7 @@
 function/method. 
 
 Point cuts can be combined using the python binary operators & and
-|, which will produce a new PointCut representing respectively the
+\|, which will produce a new PointCut representing respectively the
 intersection and the union of the join points of the original point
 cuts. 
 
@@ -144,18 +144,18 @@
 
 The following code can be used to implement a logging aspect::
 
-in file ``logging_aspect.py``::
+    in file ``logging_aspect.py``:
 
- from aop import Aspect, before, PointCut
+     from aop import Aspect, before, PointCut
 
- class LoggingAspect:
-     __metaclass__=Aspect
+     class LoggingAspect:
+         __metaclass__=Aspect
 
-     # We weave in all methods and functions, except if the name of
-     # the method starts with an underscore
-     @before(PointCut(module='.*', klass='.*', func='[^_].*').execution())
-     def logStartMethod(self, joinpoint):
-         print 'in', joinpoint.name()
+         # We weave in all methods and functions, except if the name of
+         # the method starts with an underscore
+         @before(PointCut(module='.*', klass='.*', func='[^_].*').execution())
+         def logStartMethod(self, joinpoint):
+             print 'in', joinpoint.name()
 
 
 In the startup code of the application, before all other imports::



More information about the Pypy-commit mailing list