Question using CGI in Python

Maan M. Hamze mmhamze at
Wed Aug 29 22:12:46 CEST 2001

Thanks for the tip Markus.  I was not aware of this.

"Markus Schaber" <markus at> wrote in message
news:3046523.MGUh0CODmn at
> Hi,
> Maan Hamze <mmhamze at> schrub:
> > Hidden = '<input type=hidden name=AnyNameHere value='+str(VAR1)+'>'
> Yes, that works, but the Solution from Ignacio Vazquez-Abrams
> >> print '<input type="hidden" name="VAR1" value="%s">' % VAR1
> Should be faster, especially when using lots of pluses, as the plus
> operator generates an string at every addition that is just for the GC.
> markus
> --
> "The strength of the Constitution lies entirely in the determination of
> each citizen to defend it. Only if every single citizen feels duty
> bound to do his share in this defense are the constitutional rights
> secure." -- Albert Einstein

More information about the Python-list mailing list