nadav <[EMAIL PROTECTED]> added the comment:
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 <[EMAIL PROTECTED]>
>
> Guido van Rossum <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue3516>
> _______________________________________
>
Added file: http://bugs.python.org/file11071/unnamed
_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3516>
_______________________________________
<div dir="ltr">The main problem with this is that the following code does not
make any sense:<br>"%(a)%" % dict(a=3)<br><br>It has no semantic
meaning (take the dictionary paramater a, and do nothing with it).<br>
It must be a user bug (except in very wierd cases).<br><br>I agree that when I
consider the implementaion, it makes sense, but as a python user, this behavior
is really non-intuitive.<br><br><div class="gmail_quote">2008/8/7 Guido van
Rossum <span dir="ltr"><<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204,
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Guido van Rossum <<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>> added the comment:<br>
<br>
It's straightforward if you consider the implementation of the<br>
requirement that %% renders a single percent sign: the second % is<br>
parsed just like any other formatting code (i, d, f, etc.) and the stuff<br>
between the first % and the formatting code is treated completely uniformly.<br>
<br>
----------<br>
nosy: +gvanrossum<br>
resolution: -> rejected<br>
status: open -> closed<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________<br>
Python tracker <<a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>><br>
<<a href="http://bugs.python.org/issue3516"
target="_blank">http://bugs.python.org/issue3516</a>><br>
_______________________________________<br>
</div></div></blockquote></div><br></div>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com