From e537240c252ff678d49451ee6f80fa934653a724 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 16 Mar 1993 12:15:04 +0000 Subject: * Changed many files to use mkvalue() instead of newtupleobject(). * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error. --- Python/ceval.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index 727bc0c4d7..97f38ab0c0 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1671,6 +1671,9 @@ rem(v, w) DECREF(w); return x; } + if (is_stringobject(v)) { + return formatstring(v, w); + } err_setstr(TypeError, "bad operand type(s) for %"); return NULL; } -- cgit v1.2.1