[patch #100895 ] PyErr_Format (was: Re: [Python-Dev] Patches)

Paul Prescod paul@prescod.net
Thu, 20 Jul 2000 12:27:19 -0500

"M.-A. Lemburg" wrote:
> You add your new PyErr_Format() replacement with the existing
> subset of codes, but instead of bailing out when the function
> sees a format code it doesn't understand, you use sprintf()
> or snprintf() (where available) to format the unkown code ?!

I think its too magical and could hide security holes under too many
levels of conditional behavior.

 Paul Prescod - Not encumbered by corporate consensus
"Hardly anything more unwelcome can befall a scientific writer than 
having the foundations of his edifice shaken after the work is 
finished.  I have been placed in this position by a letter from 
Mr. Bertrand Russell..." 
 - Frege, Appendix of Basic Laws of Arithmetic (of Russell's Paradox)