[Python-Dev] possible string formatting bug

Facundo Batista facundobatista at gmail.com
Mon Oct 8 18:33:12 CEST 2007


2007/10/8, Eli Courtwright <eli at courtwright.org>:

> On "Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on win32" this produces the following exception:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> TypeError: not enough arguments for format string

Please check it again, because in my machine...

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
>>> "%%(%s)=%%s" % "hello"
'%(hello)=%s'
>>>

If you still think that something is wrong somewhere, feel free to
post a bug in the tracker:

  http://bugs.python.org/

Regards,

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the Python-Dev mailing list