<s> """<STR_LIT>""" <EOL> from __future__ import with_statement <EOL> def strict_eq ( x , y ) : <EOL> '''<STR_LIT>''' <EOL> __tracebackhide__ = True <EOL> assert x == y <EOL> assert issubclass ( type ( x ) , type ( y ) ) or issubclass ( type ( y ) , type ( x ) ) <EOL> if isinstance ( x , dict ) and isinstance ( y , dict ) : <EOL> x = sorted ( x . items ( ) ) <EOL> y = sorted ( y . items ( ) ) <EOL> elif isinstance ( x , set ) and isinstance ( y , set ) : <EOL> x = sorted ( x ) <EOL> y = sorted ( y ) <EOL> assert repr ( x ) == repr ( y ) </s>
