def get_by(self, name):
    """get element by name"""
    return next((item for item in self if item.name == name), None)
def get_by ( self , name ) : return next ( ( item for item in self if item . name == name ) , None )
get element by name