#NEWLINE# def equal_set( self , a , b ) : #NEWLINE# #INDENT# "True iff subset(a, b) and subset(b, a)\n\n        >>> t = Generator('', [], [], [])\n        >>> a_set = [1, 2, 3]\n        >>> t.equal_set(a_set, a_set)\n        1\n        >>> t.equal_set(a_set, a_set[:])\n        1\n        >>> t.equal_set([], a_set)\n        0\n        >>> t.equal_set([1, 2, 3], [3, 2, 1])\n        1\n        " #NEWLINE# if ( len ( a ) != len ( b ) ) : #NEWLINE# #INDENT# return 0 #NEWLINE# #UNINDENT# if ( a == b ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# return ( self . subset ( a , b ) and self . subset ( b , a ) )