Re: Python string formatting

2018-11-01 Thread mandark . dev
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 rewr

Python string formatting

2018-10-31 Thread mandark . dev
Hi, Long story short, I discovered [1] there is no concensus [2] 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 o