5 ms·
I don't get it. Why not just write: >>> f'{foo}=' 'foo=5'
by jacobush 7y ago
I don't get it. Why not just write:
>>> f'{foo}='
'foo=5'
- baq 7y agothere'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=}')
- stOneskull 7y agof before the quote though
- baq 7y agodoh! classic 'your bick is dig', can't even edit now :(