[issue42454] Move slice creation to the compiler for constants

Raymond Hettinger report at bugs.python.org
Tue Nov 24 23:30:46 EST 2020


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

Mostly, +1 from me as well.

If anything starts to rely on hashability, it will need a fallback path since slice objects are allowed to contain arbitrary objects (which might not themselves be hashable):   s = slice([], []).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42454>
_______________________________________


More information about the Python-bugs-list mailing list