News for hackers. Stuff that matters.
Re:Things to use in Python 3 by jacobush on Wednesday May 15, 2019 @05:16AM (#19917645)
I don't get it. Why not just write:

>>> f'{foo}=' 'foo=5'

Re:Things to use in Python 3 by baq on Wednesday May 15, 2019 @07:01AM (#19918175)
there's a pattern in debugging that basically looks like

   print('foo=',foo)
like all languages should, if a pattern is wide-spread, useful and basically boilerplate, python decided to create a language shortcut for it.

   print('f{foo=}')
Re:Things to use in Python 3 by stOneskull on Wednesday May 15, 2019 @03:45PM (#19923016)
f before the quote though
Re:Things to use in Python 3 by baq on Thursday May 16, 2019 @05:25AM (#19927419)
doh! classic 'your bick is dig', can't even edit now :(