News for hackers. Stuff that matters.
Re:Pattern matching accepted for Python by staticassertion on Tuesday February 09, 2021 @06:14PM (#26083802)
Something along the lines of...

    code = 'f"{input()} {x}"'

    lambda x: eval(code)
(Please don't do this)
Re:Pattern matching accepted for Python by staticassertion on Tuesday February 09, 2021 @11:36PM (#26085783)

    code = 'f"here it is {eval(input())}"'
    (lambda: eval(code))()
k, there we go
Re:Pattern matching accepted for Python by linkdd on Tuesday February 09, 2021 @06:16PM (#26083832)
Yes, I'll stick to using str.format :)