[issue7962] Demo and Tools need to be tested and pruned

Alexander Belopolsky report at bugs.python.org
Sun Jul 4 19:43:31 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I fixed Rev.py in r82550, but I don't think it is worth keeping in the current form.  Maybe it can be replaced with a pure python reimplementation of builtins.reversed.

Note that slicing does not work for Rev:


>>> r = Rev([1,2,3])
>>> r[:]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "Demo/classes/Rev.py", line 69, in __getitem__
    return self.forw[-(j + 1)]
TypeError: unsupported operand type(s) for +: 'slice' and 'int'

----------

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


More information about the Python-bugs-list mailing list