<s> class M ( type ) : <EOL> def __instancecheck__ ( self , rhs ) : <EOL> print "<STR_LIT>" , <EOL> return True <EOL> def __subclasscheck__ ( self , rhs ) : <EOL> print "<STR_LIT>" , <EOL> return True <EOL> class A ( object ) : <EOL> __metaclass__ = M <EOL> class B ( A ) : <EOL> __metaclass__ = type <EOL> print type ( A ) , isinstance ( A ( ) , B ) , issubclass ( A , B ) <EOL> print type ( B ) , isinstance ( B ( ) , B ) , issubclass ( B , B ) <EOL> print type ( int ) , isinstance ( int ( ) , B ) , issubclass ( int , B ) </s>
