I have a function in python with 3 arguments:
def checkmsg(text, type, mac):
and the type and mac are 2 variables that i pass, type can be Alarms or Warnings, and mac: 1 or 2 so i need to store the text element (it can be a single element or an array) in a status variable (i have 4 variables in a class)
status.Alarms1, status.Alarms2, status.Warnings1, status.Warnings2
so i need first to check if the text element is the same as the one in the status, if different do something and then store it, so my questions are how can i access to the content and than update the content of the status variable having to choose it from the 2 variable passed to the function ?
P.S. (I can change the structure of the status 4 variable if it helps)