Why are tuples immutable?
Fredrik Lundh
fredrik at pythonware.com
Thu Dec 16 06:45:00 EST 2004
More information about the Python-list mailing list
Thu Dec 16 06:45:00 EST 2004
- Previous message (by thread): Why are tuples immutable?
- Next message (by thread): Why are tuples immutable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoon Pardon wrote: >> how does the dictionary know if you want key value equality or key >> identity equality? > > By the __hash__ and __eq__ methods you provide on your object. so what you're saying is that Python dictionaries should work just like Python dictionaries work today. sorry for wasting my time. </F>
- Previous message (by thread): Why are tuples immutable?
- Next message (by thread): Why are tuples immutable?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list