4 ms·
This article makes you thing the new f-strings will be discussed. What is really being discussed is 'string'.format(), which isn't new in any way.
by nhumrich 10y ago
This article makes you thing the new f-strings will be discussed. What is really being discussed is 'string'.format(), which isn't new in any way.
- eternauta3k 10y agoIt's referred to in the documentation as 'New-style', with the old style being the % operator.
- tedmiston 10y agoYes but quite confusing when we have another new style string format actively being discussed in recent months vs this "new-style formatting" which has existed since 2006. It's much clearer to just refer to it as str.format.
- halomru 10y agoIt's what invariably happens when you incorporate words like "new", "super" or "high definition" in the name of something. I'm still hoping that at some point our industry learns that lesson.
- smitherfield 10y agoIt does feel a little (unintentionally?) clickbaity.