In the section "Explicit Conversion Flag" of PEP 3101 it says:

Currently, two explicit conversion flags are recognized:

        !r - convert the value to a string using repr().
        !s - convert the value to a string using str().
--
It does not say what action is taken if an unrecognized explicit
conversion flag is found.

Later in the PEP the pseudocode for vformat() silently ignores the
case of an unrecognized explicit conversion flag. This seems
unPythonic to me but if this is the desired behavior please make it
clear in the PEP.

On 8/14/07, Talin <[EMAIL PROTECTED]> wrote:
> A new version is up, incorporating material from the various discussions
> on this list:
>
>         http://www.python.org/dev/peps/pep-3101/
>
> Diffs are here:
>
> http://svn.python.org/view/peps/trunk/pep-3101.txt?rev=57044&r1=56535&r2=57044
>
>
> -- Talin
> _______________________________________________
> Python-3000 mailing list
> Python-3000@python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: 
> http://mail.python.org/mailman/options/python-3000/python3now%40gmail.com
>
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to