On Mon, Jan 17, 2022 at 1:14 PM Christopher Barker <[email protected]> wrote: > why/how would it do that? It *could* do that -- as above, with interning. but: > > def fun(): > return "some string" > > doesn't return the same string, unless it's iterned, which is an > implementation detail, yes?
Not sure what you mean. That's a constant, so it'll always return the exact same object, surely? ChrisA _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/UBS2LTN4YD7IBQT52CXRKBB3YHJJTZY3/ Code of Conduct: http://python.org/psf/codeofconduct/
