[Python-3000] PEP 3101 Updated

James Thiele python3now at gmail.com
Thu Aug 23 01:23:07 CEST 2007


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 <talin at acm.org> 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 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/python3now%40gmail.com
>


More information about the Python-3000 mailing list