Below is my code when i compile it with python version 3.8.18 it works fine with no exception but when the code is compiled with 3.8.19 it throws UnboundLocalError: local variable ‘hard_dn’ referenced before assignment it is throwing
this is my code where cell_dn_to_hard_reset_details_map is map having keys rmod_dn type list
for cell_dn, cell_details in self.cell_dn_to_hard_reset_details_map.items():
hard_dn = RMOD_DN if cell_details.get(IS_RMOD_RESET_CELL, False) else BMOD_DN
if all((hard_dn_to_cells_dn_map.get(hard_dn).get(IS_HARD_DN_HAVING_ALL_CELLS_SLEEPING_FLAG, True) if hard_dn_to_cells_dn_map.get(hard_dn) else True for hard_dn in cell_details.get(hard_dn, []))):
What is the reason for not working with 3.8.19 and above ?
i tried to execute the same code in python 3.8.18 and below version it worked fine but when trying with 3.8.19 and above exception is thrown , it happens only with compiled code