What is the problem with the use of the ternary operator python?

    return generic_render(request, "monitor/generic/generic_list_page.html",
                          cPanel.get_cat_desc(key),
                          {"panel_list": "process" == item ? 
                                cPanel.get_panel_list(key, "") : cPanel.get_panel_list(key)})
Mar.09,2021

python does not have this syntax, write as follows:

cPanel.get_panel_list(key, '') if 'process' == item else cPanel.get_panel_list(key)
Menu