Difference of hash and __hash__()

S

Stefan Fleiter

Hi,

under Python 2.2.2:
Traceback (most recent call last):
136775584

Can anybody explain this?

Greets,
Stefan
 
T

Terry Reedy

under Python 2.2.2:

Traceback (most recent call last):

136775584

Can anybody explain this?

It looks like a bug. Extended slices were added for use by Numerical
Python. It may never have tried to hash them or only done so only
through the C equivavlent of s.__hash__. Extended slicing of
sequences was, I believe, only added in 2.3.

TJR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top