[Python-Dev] PyErr_SafeFormat

Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Sun, 16 Jul 2000 13:37:40 +0200


moshe wrote:


> On Sun, 16 Jul 2000, Fredrik Lundh wrote:
>=20
> > anyone looked at this?
>=20
> I did. It looked all right, except for the "default" in the switch
> statements.

what's wrong with the default clause?

the idea is that if it stumbles upon a formatting code it doesn't
understand, it copies the rest of the format string to the output
string (it cannot just skip unknown codes, since there's no way
to know what's in the argument list...)

if you can think of a better approach, let me know asap.

cheers /F