Bug? cgi.escape(int)
Thomas Guettler
zopestoller at thomas-guettler.de
Thu Jul 25 06:47:47 EDT 2002
Max M wrote:
> Thomas Guettler wrote:
>
>
>> It would be nice if cgi.escape(int) would not
>> throw an exception.
>>
>> What do you think?
>
>
>
> Why? Isn't escape supposed to get a string as an input? Passing it an
> int is meaningless.
No, it is not meaningless. I have arbitrary objects which I want to
write out to a html table.
if cgi.escape(foo) would do a foo=str(foo) it would possible to
escape integers and floats, too.
Yes, I can do foo=str(foo) myself before calling escape,
but this feature would hurt noone.
thomas
More information about the Python-list
mailing list