On 4/12/19 12:53 pm, Soni L. wrote:
Okay, sometimes it's also used for that. But the main use-case is for lowering RAM usage for immutable objects.
Citation needed. If that's true, why does Python intern names used in code, but not strings in general? I'd say because looking names up in dicts benefits enormously from being able to quickly compare for equality. -- Greg _______________________________________________ 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/AXHA4NUECCHCTFDCISVETOBQXMIURNRV/ Code of Conduct: http://python.org/psf/codeofconduct/