[OT] Python formatting [was ISO C++ 17 changes]

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Fri Apr 7 02:01:37 PDT 2017


On Thu, 2017-04-06 at 21:02 +0000, Jack Stouffer via Digitalmars-d
wrote:
> On Tuesday, 4 April 2017 at 15:41:08 UTC, Russel Winder wrote:
> > Interestingly, or not, Python 3.6 introduces string 
> > interpolation even though Python already has the format 
> > function. And pythonistas are happy about this.
> 
> I can say the redditor Python userbase wasn't. The same sentiment 
> was repeated by every comment: "So now there's three ways to 
> format a string that all do the same thing? Why?".

Different communities then. I don't do Reddit – waste of time.

Why three? There is the format function and now f-strings, that makes
two.
 
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20170407/1c29bb04/attachment.sig>


More information about the Digitalmars-d mailing list