I don't have a strong opinion on whether or not we should make the switch but if the consensus is too move forward with this I'd suggest we wait until Django master's branch only supports Python 3.6+.
That would allow us to switch directly to f-strings and avoid doubling the already large diff noise that such a change would generate. Simon Le mercredi 31 octobre 2018 13:13:34 UTC-4, manda...@gmail.com a écrit : > > Hi, > > Long story short, I discovered  there is no concensus  on which > formatting to use in the Django tutorial. > > An argument for % (or against the format method) was > https://savannah.gnu.org/bugs/?30854 but it has been fixed 5 years ago, > its stays an argument against f-strings. > > It seemed obvious to me that we should favor the use of ".format()" over > "%-formatting" , at least for newcomers (in the tutorial), as they are > expected to run work up-to-date Python interpreters. > > It also make it smoother for them to step on (or convert to to) f-strings > from the ".format" mini-language than from the "%s" notation. And for those > using 3.6+, using f-string is clearly more readable than .format or % (As > long as they don't have to do i18n on those f-strings). > > The thread in  is 5 years old, so I'm starting a new one to see if we > can reach a concensus in 2018—2019 about not driving newcomers to use > %-formatting. > > What do you think? > > : https://github.com/django/django/pull/10590/files > : > https://groups.google.com/forum/#!topic/django-developers/7xiXlz5DUWM/discussion > : > https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting > -- 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 django-developers+unsubscr...@googlegroups.com. To post to this group, send email to email@example.com. 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/adaaeee3-7460-4a87-b08d-596d20201660%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.