if Request("something") == None: doesn't work

Max M maxm at mxm.dk
Thu May 13 03:50:18 EDT 2004


Sam Sungshik Kong wrote:

> Hello!
> 
> I use Python for ASP programming.
> I found something weird.
> 
> Response.Write(Request("something"))
> It draws "None" when there's no value for something.
> Actually I expect "" instead of "None".


You could make it easier on yorself and you convert your Request object 
to a Python Dictionary instead.

http://www.mxm.dk/products/public/iisUtils

regards Max M



More information about the Python-list mailing list