[Python-3000] PEP 3101 clarification requests

Guido van Rossum guido at python.org
Mon Aug 20 21:01:16 CEST 2007


On 8/19/07, Eric Smith <eric+python-dev at trueblade.com> wrote:
> Talin wrote:
> > Wow, excellent feedback. I've added your email to the list of reminders
> > for the next round of edits.
>
> Here's something else for future edits:
>
> 1. When converting a string to an integer, what should the rules be?
> Should:
> format("0xd", "d")
> produce "13", or should it be an error?

I can't see that as anything besides an error. There should be no
implicit conversions from strings to ints.

> 2. I'm making the format specifiers as strict as I can.  So, I've made
> these ValueError's:
>
> For strings:
>    - specifying a sign
>    - specifying an alignment of '='
>
> For longs:
>    - specify a precision
>    - specify a sign with type of 'c'

Works for me. Will probably catch a few bugs.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list