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>&quot;%(a)%&quot; % 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">&lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt;</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 &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt; added the comment:<br>
<br>
It&#39;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: &nbsp;-&gt; rejected<br>
status: open -&gt; closed<br>
<div><div></div><div class="Wj3C7c"><br>
_______________________________________<br>
Python tracker &lt;<a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>&gt;<br>
&lt;<a href="http://bugs.python.org/issue3516"; 
target="_blank">http://bugs.python.org/issue3516</a>&gt;<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

Reply via email to