News for hackers. Stuff that matters.
Re:Python's new t-strings by yk on Monday April 21, 2025 @06:40AM (#43750347)
That's entirely implementation dependent. For existing libraries I would expect something like

    def get(self, query):
        if isinstance(query, template):
            self.get_template(query)
        else:
            self.get_old(query) #Don't break old code!
Re:Python's new t-strings by ewidar on Monday April 21, 2025 @09:51AM (#43752016)
it would likely be safer to have a safe (accepting Templates) and an unsafe (accepting strings) interface.

Now whether maintainers introduce `getSafe` and keep the old behavior intact, or make a breaking change to turn `get` into `getUnsafe`, we will see

Re:Python's new t-strings by darthwalsh on Monday April 21, 2025 @12:42PM (#43753887)
And they could add deprecation warnings gradually