def iconcat(a, b):
 if (not hasattr(a, '__getitem__')):
  msg = ("'%s' object can't be concatenated" % type(a).__name__)
  raise TypeError(msg)
 a += b
 return a

def iconcat ( a , b ) : if ( not hasattr ( a , '__getitem__' ) ) : msg = ( "'%s' object can't be concatenated" % type ( a ) . __name__ ) raise TypeError ( msg ) a += b return a
same as a += b .