3 ms·
Goes both ways, sometimes there's text to quote: raise KeyError('"%s" not found.' % name) f'The flange is elevated by {flange["spronge"]} degrees of spronge.'
by mixmastamyk 8y ago
Goes both ways, sometimes there's text to quote:
raise KeyError('"%s" not found.' % name)
f'The flange is elevated by {flange["spronge"]} degrees of spronge.'
I don't normally use many contractions or possessives in my code, but am willing to admit it happens occasionally.
- zestyping 8y agoYep, that's why I like how repr() does it. Guido solved this nicely a long time ago :)