Jean-Paul Calderone added the comment:

> Slice objects are really meant to be internal structures and not
passed around in the user's code. 

I don't know what they're "meant" to be, but they're certainly not
internal.  If you implement __getitem__, __setitem__, or __delitem__,
then chances are Python is going to be passing slices to your code. 
That doesn't sound internal to me.

Having hashable slices is nice.  The repr() workaround has a major
drawback in that it makes it difficult to use the extremely useful
"indices" method of the slice type.

----------
nosy: +exarkun

_____________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1733184>
_____________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to