Archive for String formatting

Python 3.6 brings smarter text formatting

Python 3.6 is out!

New major release of Python today brings a few handy upgrades.

I particularly fancy the F string formatting. I’ve always liked how simple formatting of strings is in Python but it got even easier. I’ll let you RTFM if interested but essentially you stick an ‘f’ in front of a string literal to perform a more succinct version of .format(). Pretty cool.