Alternativa para ditar a compreensão anterior ao Python 2.7
Como posso tornar a seguinte funcionalidade compatível com versões do Python anteriores ao Python 2.7?
gwfuncs = [reboot, flush_macs, flush_cache, new_gw, revert_gw, send_log]
gw_func_dict = {chr(2**i): func for i, func in enumerate(gwfuncs[:8])}