def expr_md5(expr):
 exprstr = str(expr)
 if (not isinstance(exprstr, bytes)):
  exprstr = exprstr.encode('utf-8')
 return md5(exprstr).hexdigest()

def expr_md5 ( expr ) : exprstr = str ( expr ) if ( not isinstance ( exprstr , bytes ) ) : exprstr = exprstr . encode ( 'utf-8' ) return md5 ( exprstr ) . hexdigest ( )
returns the md5 hash of the str of the expression .