beremiz
Clone
Summary
Browse
Changes
Graph
Added caching for python eval (avoid compiling when same code called, but still execute). Cleaned up some evaluator related code.
2012-10-24, Edouard Tisserant
06495975e8a4
Added caching for python eval (avoid compiling when same code called, but still execute). Cleaned up some evaluator related code.
from pyjs.jsonrpc import JSONRPCServiceBase
class JSONRPCService(JSONRPCServiceBase):
def serve(self):
return self.process(request.body.read())
def __call__(self,func):
self.methods[func.__name__]=func
return func