News for hackers. Stuff that matters.
Re:Show HN: Pump, a dead simple Pythonic abstraction of HTTP. by est on Wednesday July 27, 2011 @04:49AM (#2811354)
I never understand the mentality of modern wsgi/cgi design. Passing parameters using environ? Why not directly as a python request object?
Re:Show HN: Pump, a dead simple Pythonic abstraction of HTTP. by LeafStorm on Wednesday July 27, 2011 @09:39AM (#2812066)
For consistency. If there was a request object, there would need to be some sort of standard implementation that there was always access to so that the object could be properly instantiated, instance tested, etc. By using a plain old dict, you ensure compatibility at the cost of attribute access.

Also because WSGI is designed to be low-level, and if you want a request object you should really be using a library or framework.

Re:Show HN: Pump, a dead simple Pythonic abstraction of HTTP. by est on Thursday July 28, 2011 @07:33AM (#2816246)
But the old model sucks. If a process can handle more than one request, how does it change environ if there is only one process?