The code i posted should run also with Python2.7, but not tested. I do not care about this.
Unpacking star assignment was introduced with 3.4 or 3.5 and is very nice.
The set/dict/list comprehension is not easy to understand. Written as for-loop:
Unpacking star assignment was introduced with 3.4 or 3.5 and is very nice.
first_element, *rest = long_list first_element, *middle, last_element = long_listI always imply that the user is using Python 3.x. I do not support legacy Python.
The set/dict/list comprehension is not easy to understand. Written as for-loop:
access_points_dict = {} for address, essid, channel in zip(addresses, essids, channels): access_points_dict[essid] = {'address': address, 'channel': channel}
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!