Hi,
under Python 2.2.2:
[color=blue][color=green][color=darkred]
>>> s = slice(None,5,No ne)
>>> hash(s)[/color][/color][/color]
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: unhashable type[color=blue][color=green][color=darkred]
>>> s.__hash__()[/color][/color][/color]
136775584
Can anybody explain this?
Greets,
Stefan
under Python 2.2.2:
[color=blue][color=green][color=darkred]
>>> s = slice(None,5,No ne)
>>> hash(s)[/color][/color][/color]
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: unhashable type[color=blue][color=green][color=darkred]
>>> s.__hash__()[/color][/color][/color]
136775584
Can anybody explain this?
Greets,
Stefan
Comment