This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, Mark.Shannon, christian.heimes, josh.r, mark.dickinson, pablogsal, rhettinger, serhiy.storchaka, terry.reedy
Date 2020-11-30.18:19:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606760347.41.0.304929612377.issue42454@roundup.psfhosted.org>
In-reply-to
Content
> By leaving slices unhashable, and accounting for their presence in code.__hash__, we get both the performance improvement and full backwards compatibility.


I thought about using code.__hash__ in the first place, but the compiler's underlying store system (both compiler_unit->u_consts and compiler->c_const_cache) uses dictionary's where the keys are constant objects themselves (or tuples where one of the items is the constant). We might need to change that first (either using something else for the keys, or switch to lists? or something else).
History
Date User Action Args
2020-11-30 18:19:07BTaskayasetrecipients: + BTaskaya, rhettinger, terry.reedy, mark.dickinson, christian.heimes, Mark.Shannon, serhiy.storchaka, josh.r, pablogsal
2020-11-30 18:19:07BTaskayasetmessageid: <1606760347.41.0.304929612377.issue42454@roundup.psfhosted.org>
2020-11-30 18:19:07BTaskayalinkissue42454 messages
2020-11-30 18:19:07BTaskayacreate