Code

Changes between Version 8 and Version 9 of PsycoMiddleware


Ignore:
Timestamp:
03/01/07 12:43:27 (7 years ago)
Author:
Mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PsycoMiddleware

    v8 v9  
    6464}}} 
    6565 
    66 Or even (that's how I use it) 
     66Or even (that's how I use it, and according to `psyco.log()` it seems to work) 
    6767{{{ 
    6868#!python 
    6969 
    7070import psyco 
     71# psyco.log() -- uncomment this if you want to see how psyco performs 
     72psyco.cannotcompile(re.compile) 
    7173psyco.profile() 
    7274 
     75 
    7376class PsycoMiddleware(object): 
    74     def process_request(self, request): 
    75         return None 
     77    def __init__(self): 
     78         psyco.profile() 
    7679}}} 
     80See http://psyco.sourceforge.net/psycoguide/tutknownbugs.html#tutknownbugs for `cannotcompile()`.