#NEWLINE# def hash_iterable( iterable ) : #NEWLINE# #INDENT# '\n    Compute hash for some iterable value\n    ' #NEWLINE# value = hash ( iterable . __class__ ) #NEWLINE# for item in iterable : #NEWLINE# #INDENT# value = ( ( ( value * 1000003 ) & sys . maxint ) ^ compute_hash ( value ) ) #NEWLINE# #UNINDENT# return value