FWIW it looks like gettext support issues were addressed a while ago[0]

The main issue standing with existing translations is that they'll need to 
be regenerated[1]
which would require a non-trivial amount of coordination between 
translation teams I
assume.

Simon
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668226
[1] https://code.djangoproject.com/ticket/28647#comment:2

Le mercredi 31 octobre 2018 18:54:12 UTC-4, Tim Graham a écrit :
>
> Another discussion is 
> https://groups.google.com/d/topic/django-developers/J9CfWIgrgbY/discussion 
> - % vs {} string formatting for public APIs
>
> I haven't seen any practical benefits to prefer format() over %s. I find 
> the latter less verbose.
>
> I'm not certain what this argument is (things like 
> http://lucumr.pocoo.org/2016/12/29/careful-with-str-format/ I imagine) 
> but here's a previous concern that Florian raised regarding f-strings:
> "Knowing what certain members of the core team think about those 
> f-strings, I think there will be first a big discussion if we will allow 
> them at all in Django's codebase. Then there are further things to consider 
> like gettext support etc…"
> https://groups.google.com/d/msg/django-developers/4rbVKJYm8DI/y9VNRBw0AgAJ
>
> On Wednesday, October 31, 2018 at 6:28:08 PM UTC-4, Tom Forbes wrote:
>>
>> In my experience f strings are vastly more expressive than .format, but 
>> not much better than % based formatting.
>>
>> If we can make this change after we drop 3.5 I think it will be a lot 
>> easier.
>>
>> On Wed, 31 Oct 2018, 21:09 Adrian Turjak <adr...@catalyst.net.nz wrote:
>>
>>> There was a push to deprecated % formatting but too many people 
>>> complained and that never happened.
>>>
>>> While .format and g-strings are superior, % is here to stay for the 
>>> foreseeable future. Too many people still use it (including myself 
>>> sometimes).
>>>
>>> On 1 Nov. 2018 08:14, Carlton Gibson <carlton...@gmail.com> wrote:
>>>
>>> We had a bit of a discussion of this on 
>>>
>>>
>>> Python 2 docs have got this re format(): 
>>>
>>> > This method of string formatting is the new standard in Python 3, and 
>>> should be preferred to the % formatting described in String Formatting 
>>> Operations in new code.
>>>
>>> ​https://docs.python.org/2/library/stdtypes.html#str.format
>>>
>>> But it's not there for Python 3 (
>>> ​https://docs.python.org/3/library/stdtypes.html#str.format) so I'm not 
>>> clear what we're meant to think. 
>>> (I had thought %-formatting deprecated...) 
>>>
>>> Anyone know? 
>>>
>>> Regardless, waiting a bit and moving straight to f-strings (as Simon 
>>> suggests) seems sensible. (If we're convinced we do want to change.)
>>>
>>> -- 
>>> 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-develop...@googlegroups.com.
>>> To post to this group, send email to django-d...@googlegroups.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/e7cf5b0d-cff4-4c6d-a9ec-1af4a82d5a56%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-developers/e7cf5b0d-cff4-4c6d-a9ec-1af4a82d5a56%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 django-develop...@googlegroups.com.
>>> To post to this group, send email to django-d...@googlegroups.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/6b09193b-a53f-4eb4-9f36-2c7aa11f47cb%40email.android.com
>>>  
>>> <https://groups.google.com/d/msgid/django-developers/6b09193b-a53f-4eb4-9f36-2c7aa11f47cb%40email.android.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 django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.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/10aa9839-288f-4815-93f5-901ee32a58e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to