[Python-Dev] Replace useless %.100s by %s in PyErr_Format()

"Martin v. Löwis" martin at v.loewis.de
Thu Mar 24 23:57:38 CET 2011


> I would like to replace %.100s because there are no more reason to
> truncate strings to an arbitrary length.

I agree with MAL. It protects against cases with ridiculously long
parameters - say, you have a string with 1GB. You *want* to truncate
bogus text.

Regards,
Martin


More information about the Python-Dev mailing list