Changes between Version 8 and Version 9 of PsycoMiddleware
- Timestamp:
- Mar 1, 2007, 2:43:27 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PsycoMiddleware
v8 v9 64 64 }}} 65 65 66 Or even (that's how I use it )66 Or even (that's how I use it, and according to `psyco.log()` it seems to work) 67 67 {{{ 68 68 #!python 69 69 70 70 import psyco 71 # psyco.log() -- uncomment this if you want to see how psyco performs 72 psyco.cannotcompile(re.compile) 71 73 psyco.profile() 72 74 75 73 76 class PsycoMiddleware(object): 74 def process_request(self, request):75 return None77 def __init__(self): 78 psyco.profile() 76 79 }}} 80 See http://psyco.sourceforge.net/psycoguide/tutknownbugs.html#tutknownbugs for `cannotcompile()`.