This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author blop
Recipients blop, gvanrossum
Date 2008-08-07.17:19:29
SpamBayes Score 2.0920524e-07
Marked as misclassified No
Message-id <f046a5c0808071019n1185b094k95209e1db38f9c08@mail.gmail.com>
In-reply-to <1218127875.37.0.564791039456.issue3516@psf.upfronthosting.co.za>
Content
The main problem with this is that the following code does not make any
sense:
"%(a)%" % dict(a=3)

It has no semantic meaning (take the dictionary paramater a, and do nothing
with it).
It must be a user bug (except in very wierd cases).

I agree that when I consider the implementaion, it makes sense, but as a
python user, this behavior is really non-intuitive.

2008/8/7 Guido van Rossum <report@bugs.python.org>

>
> Guido van Rossum <guido@python.org> added the comment:
>
> It's straightforward if you consider the implementation of the
> requirement that %% renders a single percent sign: the second % is
> parsed just like any other formatting code (i, d, f, etc.) and the stuff
> between the first % and the formatting code is treated completely
> uniformly.
>
> ----------
> nosy: +gvanrossum
> resolution:  -> rejected
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue3516>
> _______________________________________
>
Files
File name Uploaded
unnamed blop, 2008-08-07.17:19:29
History
Date User Action Args
2008-08-07 17:19:30blopsetrecipients: + blop, gvanrossum
2008-08-07 17:19:29bloplinkissue3516 messages
2008-08-07 17:19:29blopcreate