[Web-SIG] [Paste] WebOb API
Chris McDonough
chrism at plope.com
Thu Oct 29 22:01:02 CET 2009
Ian Bicking wrote:
> Also I'm planning on introducing a BaseRequest (and *maybe*
> BaseResponse) class, that removes some functionality. Specifically
> for Repoze they'd like to remove __getattr__ and __setattr__ (which
> has some performance implications),
FTR, after thinking about it, I'm not even sure BaseRequest is necessary for
this purpose. This seems to work too (at least it gets previously visible
setattr/getattr stuff out of the profiling info):
class Request(WebobRequest):
__setattr__ = object.__setattr__
__getattr__ = object.__getattribute__
__delattr__ = object.__delattr__
More information about the Web-SIG
mailing list