[issue39963] Subclassing slice objects

Mario de OOurtzborun report at bugs.python.org
Sat Mar 14 01:35:00 EDT 2020


New submission from Mario de OOurtzborun <qqkvxebebukvevrtwg at awdrt.org>:

Is there any reason why slice objects aren't subclassable? I want a mutable slice object, but there is no way to create one that will work with lists or tuples. And __index__ method requires to return int. I want to prepare a git merge request about this issue if there is no specific reason to forbid them becoming a base class.

----------
messages: 364143
nosy: mariode1
priority: normal
severity: normal
status: open
title: Subclassing slice objects

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


More information about the Python-bugs-list mailing list