
Jan. 17, 2022
2:31 a.m.
On Mon, Jan 17, 2022 at 1:14 PM Christopher Barker <pythonchb@gmail.com> 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