On Mon, Jan 17, 2022 at 1:14 PM Christopher Barker <python...@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
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/UBS2LTN4YD7IBQT52CXRKBB3YHJJTZY3/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to