[Python-Dev] Web Programming Improvements

Guido van Rossum guido@python.org
Thu, 02 Nov 2000 05:06:16 -0500


[Andrew]
> Stuff I personally want to get done:
>   * Finish PEP 222, "Web Programming Improvements" and implement whatever
>     emerges from it.

I just skimmed PEP 222.  I agree that the classes defined by cgi.py
are unnecessarily arcane.  I wonder if it isn't better to just start
over rather than trying to add yet another new class to the already
top-heavy CGI module???

Regarding file uploads: you *seem* to be proposing that uploaded files
should be loaded into memory only.  I've got complaints from people
who are uploading 10 Mb files and don't appreciate their process
growing by that much.  Perhaps there should be more options, so that
the caller can control the disposition of uploads more carefully?
What's wrong with subclassing?  Maybe two example subclasses should be
provided?

Regarding templating -- what's wrong with HTMLgen as a starting point?
Just that it's too big?  I've never used it myself, but I've always
been impressed with its appearance. :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)