News for hackers. Stuff that matters.
Re:Python 3's F-Strings: An Improved String Formatting Syntax by abdusco on Wednesday January 20, 2021 @03:56PM (#25851881)
Not mentioned in the article, but with Python 3.8, f-strings have gained the ability to print debug information using `=` specifier.

    name = 'world'
    print(f'hello {name.upper()=}')
outputs:

    hello name.upper()='WORLD'

It's small, but very useful in debugging an issue or logging something to the console.

https://docs.python.org/3/whatsnew/3.8.html#f-strings-suppor...

Re:Python 3's F-Strings: An Improved String Formatting Syntax by cabalamat on Wednesday January 20, 2021 @05:35PM (#25852881)
That's something I didn't know, but will know be using.
Re:Python 3's F-Strings: An Improved String Formatting Syntax by ipiz0618 on Thursday January 21, 2021 @01:32AM (#25856156)
This is neat! I can think of several instances where this would be useful in my code
Re:Python 3's F-Strings: An Improved String Formatting Syntax by richardARPANET on Wednesday January 20, 2021 @05:53PM (#25853024)
Re:Python 3's F-Strings: An Improved String Formatting Syntax by Denvercoder9 on Wednesday January 20, 2021 @06:09PM (#25853152)
The fact that it can only output to a single hardcoded file already proves that it is not way better in the general case.