News for hackers. Stuff that matters.
Re:Python 3's F-Strings: An Improved String Formatting Syntax by wskinner on Wednesday January 20, 2021 @03:57PM (#25851889)
This is easily avoidable in python by using single quotes for the outer string and double quotes for the inner string, or vice versa. Or, use triple quotes for the outer string.
Re:Python 3's F-Strings: An Improved String Formatting Syntax by dragonwriter on Wednesday January 20, 2021 @04:12PM (#25852060)
Yeah, if you get to the level of nesting where having available quotes is an issue, you really need to break it up into multiple expressions.