Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Sort sets by item values
Post: RE: Sort sets by item values

I try additional sorting by tcp/udp before ip1 or addr2 like this def sort_key(item): rest, eq = item.split('eq') protocol = item.split()[1] _, ip1, ip2 = rest.split('host') ip1 = tupl...
Sergey General Coding Help 4 79,043 Apr-19-2019, 10:50 AM
    Thread: Sort sets by item values
Post: RE: Sort sets by item values

Thank you guys, very helpful! DeaD_EyE, thanks for the explanation!
Sergey General Coding Help 4 79,043 Apr-18-2019, 12:42 PM
    Thread: Sort sets by item values
Post: Sort sets by item values

Good day! In Python, a beginner, so I apologize in advance, if not correct, I will describe something. There are set, for example: {'permit tcp host 192.168.23.6 host 192.168.2.31 eq 445', 'permit t...
Sergey General Coding Help 4 79,043 Apr-18-2019, 11:33 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020