Please Note, question got fixed.
In python I have the following list
[('admin', 'admin', None), ('admin', 'admin', None), ('admin', 'admin', 1)]
How can I remove duplicates where I consider an item to be duplicate if it has the same 3 first tuples, so I'm expecting to get the following output:
[('admin', 'admin', None), ('admin', 'admin', 1)]
as we can find ('admin', 'admin', None)
twice in the original input.
The provided and only answer fails on the following input:
[('admin', '', {'type': 'http_basic', 'login_url': 'https://IP_HERE/AuthChk', 'method': 'get'})]
While I'm expecting it to return exactly same list
Same error for:
list(set([i for i in lst]))