From: Tavis R. <ta...@ca...> - 2001-12-31 18:36:52
|
+1 , but lets think through the actual API changes it would entail: * trans.request instead of trans.request(), trans.response.write(...) instead of trans.response().write(...), etc. * trans.request() and trans.response() would raise an exception, etc. * lots of changes to existing servlet code !!! though a conversion tool could ease migration * many 'properties' would be read only, which Python 2.2 handles quite gracefully. * some of the 'properties' are calculated properties that don't map directly to an attribute. Again, Python 2.2 handles this well. trans.session trans.servlet trans.request trans.response trans.application session.values ? request.cookies ? request.fields ? request.values ? request.rawRequest ? request.urlPath ? request.remoteAddress ? ... and lots more ... see http://webware.sourceforge.net/Webware/WebKit/Docs/Source/Summaries/HTTPRequest.py.html response.cookies ? response.headers ? response.size ? What about the internal attributes/methods that are underscored? Tavis |