1.1 --- a/lib/__builtins__/comparable.py Thu Dec 01 23:48:24 2016 +0100
1.2 +++ b/lib/__builtins__/comparable.py Fri Dec 02 00:52:25 2016 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Comparison-related functions.
1.6
1.7 -Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -20,6 +20,11 @@
1.13 """
1.14
1.15 def cmp(x, y): pass
1.16 -def hash(obj): pass
1.17 +
1.18 +def hash(obj):
1.19 +
1.20 + "Return a hashing value for 'obj'."
1.21 +
1.22 + return obj.__hash__()
1.23
1.24 # vim: tabstop=4 expandtab shiftwidth=4