The only argument I see for format() over the % operator is that bytes
objects explicitly do not have the format() method and so it'll catch
errors where a bytes object is passed to something expecting a string.

But since we're already Unicode-ifying everything at the boundaries and
have been since before Python 3 existed, I don't think there's much gain
from that, and it's not like %-formatting is going away. So I'd argue that
it's fine to keep things as they are for now, use format() in future
commits if it's cleaner, or just adopt a policy of "if you're in there
making a change and it won't break back compat, feel free to update to
format() while you're at it" for people doing patches, rather than try to
force all usage to convert in one go.

On Mon, Feb 22, 2016 at 10:48 AM, Claude Paroz <[email protected]> wrote:

> Hello,
>
> I don't see much gain with that change, except for specific cases. This
> would also bring a bunch of compatibility issues. I'd rather make the
> change when it does bring something. I understand your consistency
> argument, but we need to balance that with the work generated by the change
> in all existin projects. A -0 from me.
>
> Claude
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/5c9a0cfa-d618-470e-9530-522b0466d6f8%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/5c9a0cfa-d618-470e-9530-522b0466d6f8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAL13Cg9Rq8yz095k_qkrb7exy5EbRj%3DsD09cqi6T8%3DNTT6nd4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to