#NEWLINE# def issubtype( a , b ) : #NEWLINE# #INDENT# ' A custom issubclass ' #NEWLINE# if issubclass ( a , b ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( issubclass ( a , ( tuple , list , set ) ) and issubclass ( a , Iterator ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( issubclass ( b , ( tuple , list , set ) ) and issubclass ( a , Iterator ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False