diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2008-08-11 15:45:58 +0000 |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2008-08-11 15:45:58 +0000 |
commit | 48361f5cbf419cce361fd1aa0389d6304ad167db (patch) | |
tree | e3fb92982d5564830f6ce9a3f725acc51553ec50 /Lib/UserList.py | |
parent | f8d62d23e9b02c557b2bbe69f693fc14c2574281 (diff) | |
download | cpython-git-48361f5cbf419cce361fd1aa0389d6304ad167db.tar.gz |
Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
Diffstat (limited to 'Lib/UserList.py')
-rw-r--r-- | Lib/UserList.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/UserList.py b/Lib/UserList.py index 556a3273a8..b445985707 100644 --- a/Lib/UserList.py +++ b/Lib/UserList.py @@ -25,6 +25,7 @@ class UserList(collections.MutableSequence): else: return other def __cmp__(self, other): return cmp(self.data, self.__cast(other)) + __hash__ = None # Mutable sequence, so not hashable def __contains__(self, item): return item in self.data def __len__(self): return len(self.data) def __getitem__(self, i): return self.data[i] |