I've got the following list of nested dictionaries:
[{'permission': 'full',
'permission_type': 'allow',
'trustee': {'id': 'SID:S-1-5-32-545',
'name': 'Users',
'type': 'group'}},
{'permission': 'full',
'permission_type': 'allow',
'trustee': {'id': 'SID:S-1-5-32-545',
'name': 'Users',
'type': 'group'}},
{'permission': 'full',
'permission_type': 'allow',
'trustee': {'id': 'SID:S-1-5-32-544',
'name': 'Administrators',
'type': 'group'}}]
I want to make it unique and have tried different suggestions with no success. Can someone help to make it unique in python 2.6? There is no key/unique field in the data above. I expect the following result (one member of the list is removed as a full duplicate):
[{'permission': 'full',
'permission_type': 'allow',
'trustee': {'id': 'SID:S-1-5-32-545',
'name': 'Users',
'type': 'group'}},
{'permission': 'full',
'permission_type': 'allow',
'trustee': {'id': 'SID:S-1-5-32-544',
'name': 'Administrators',
'type': 'group'}}]