[issue3004] Bug in slice.indices()

Arnaud Bergeron report at bugs.python.org
Wed Jun 18 17:56:46 CEST 2008


Arnaud Bergeron <abergeron at gmail.com> added the comment:

Would these do?

self.assertEqual(slice(None,   -10    ).indices(10), (0,  0,  1))
self.assertEqual(slice(None,   -11,   ).indices(10), (0,  0,  1))
self.assertEqual(slice(None,   -12, -1).indices(10), (9, -1, -1))

If yes, test_slice.patch adds them.

Added file: http://bugs.python.org/file10653/test_slice.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3004>
_______________________________________


More information about the Python-bugs-list mailing list