[issue39963] Subclassing slice objects

2020-03-20 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
stage:  -> test needed
type:  -> enhancement
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39963] Subclassing slice objects

2020-03-14 Thread Raymond Hettinger


Change by Raymond Hettinger :


--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39963] Subclassing slice objects

2020-03-13 Thread Mario de OOurtzborun


New submission from Mario de OOurtzborun :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com