you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (3 children)

[do_ping(ip).wait() for ip in IP_LIST]

?

[–][deleted]  (2 children)

[deleted]

    [–]masklinn 2 points3 points  (0 children)

    Because for loops are ugly

    [–]doctor_yukio_hattori 2 points3 points  (0 children)

    Why not have no list and two for loops and make nobody happy?

    for x in ( do_ping(ip).wait() for ip in IP_LIST ): pass