Re: [Python-Dev] possible string formatting bug

2007-10-08 Thread Eli Courtwright
Thanks for the quick responses. Embarrassingly, this problem turned out to be a typo on my part. I visually double-and-triple-checked my code before posting to this list, but I still didn't notice the typo. Sorry to send everyone on a wild goose chase. - Eli

Re: [Python-Dev] possible string formatting bug

2007-10-08 Thread Steve Holden
Facundo Batista wrote: > 2007/10/8, Eli Courtwright <[EMAIL PROTECTED]>: > >> 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 "", line 1, in >> TypeError: not enoug

Re: [Python-Dev] possible string formatting bug

2007-10-08 Thread Facundo Batista
2007/10/8, Eli Courtwright <[EMAIL PROTECTED]>: > 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 "", line 1, in > TypeError: not enough arguments for format string P

Re: [Python-Dev] possible string formatting bug

2007-10-08 Thread Georg Brandl
Eli Courtwright schrieb: > Greetings, > > I've found what might be a bug in Python's % string formatting > operator. Consider the following code: > > "%%(%s)=%%s" % "hello" > > On "Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming > special, gdc 0.12, using dmd 0.125)] on cyg

Re: [Python-Dev] possible string formatting bug

2007-10-08 Thread Aahz
On Mon, Oct 08, 2007, Eli Courtwright wrote: > > I've found what might be a bug in Python's % string formatting operator. > Consider the following code: > > "%%(%s)=%%s" % "hello" > > On "Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming > special, gdc 0.12, using dmd 0.125)] o

[Python-Dev] possible string formatting bug

2007-10-08 Thread Eli Courtwright
Greetings, I've found what might be a bug in Python's % string formatting operator. Consider the following code: "%%(%s)=%%s" % "hello" On "Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin" this produces the string "%(hello)s=%s"