Is this a BUG?

lg at rgz.ru lg at rgz.ru
Thu Dec 28 13:35:49 CET 2000


QdlatY <qdlaty at wielun.dhs.org> wrote:
> Hello!

> I have script:
> ----------------
> import cgi

> form = cgi.FieldStorage()

> print form
> print "!",form["index"].value,"!"
try print "!"+form["index"].value+"!"

> I launched it with parameter index=1
> And this is an output:
> ----------------
> FieldStorage(None, None, [MiniFieldStorage('index', '1')])
> ! 1 !
> ----------------
>  ^ ^
> Why the hell there are spaces? index property has value '1'!
> not ' 1 '?!

> Yours
> QdlatY

-- 
zev



More information about the Python-list mailing list