I fail to see a problem with %. It's the primary format used throughout 
Django. The Django tutorial assumes some knowledge of Python, so I'd expect 
most newcomers would be familiar with both string formatting syntaxes.

Maybe I'm just an old curmudgeon, but I find the tutorial examples more 
readable and less verbose with % than rewritten with format(). ;-)

On Thursday, November 1, 2018 at 5:38:47 PM UTC-4, [email protected] wrote:
>
> Thanks everybody for your answers.
>
> # Why not wait and jump directly to f-strings?
>
> I like f-strings a lot too, but they does not work with i18n at the 
> moment. (To work with i18n we'll need something like PEP 501 [1], currently 
> deferred).
>
>
> # Diff would be large :( Translation would be to be rewritten :(
>
> I'm *only* speaking about the examples in the tutorial for the moment, the 
> part of the documentation where newcomers are landing, where they are 
> learning. In this place we have to show them good practices.
>
> So it should be a not-so-big diff, and those examples are not translated.
>
>
> # What about % being deprecated?
>
> It was a rumor only. It would break too much code, so it's not even being 
> discussed AFAICT.
>
> But from my point of view, it's not because it's not officially deprecated 
> that we should keep teaching new users to use it.
>
>
>
> [1]: https://www.python.org/dev/peps/pep-0501
>
>
>

-- 
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/87736d83-8e02-4092-9dd0-05683227b6eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to