[Web-SIG] PEP222 and python on the server?

Phillip J. Eby pje at telecommunity.com
Fri Jun 10 01:44:53 CEST 2005

At 03:34 PM 6/9/2005 -0700, mso at oz.net wrote:
>The only limitation in WSGI I've found is you can't serialize it for IPC
>since it contains an open file descriptor.

That's quite a generalization there.  First, many WSGI implementations 
don't have a file descriptor involved.  Second, there are lots of ways to 
serialize things, including e.g. transmitting file descriptors via 
Unix-domain sockets.  Third, nothing stops you from reading the data and 
sending *that* via your IPC mechanism.  Fourth, you can always do IPC via 
HTTP.  :)

But if what you meant was that pickle, marshal, and XML-RPC won't handle 
some kinds of file-like objects very well, then, yes, and disregard the 
previous paragraph.  :)

More information about the Web-SIG mailing list