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__ _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com