News for hackers. Stuff that matters.
Re:What's Coming in Python 3.8 by lewiscollard on Thursday July 18, 2019 @07:32AM (#20468688)
For me, the hugs thing about f-strings was that invalid string format characters become a compile time error (SyntaxError).

  print('I do not get executed :)')
  f'{!}'


  File "stefco.py", line 2
    f'{!}'
    ^
  SyntaxError: f-string: empty expression not allowed
This has the pleasing characteristic of eliminating an entire class of bug. :)

There are no comments on this comment yet.