Quick actions

cmd+k|ctrl+k

Navigation

Languages

Set of tuples

Snippet info

Language

Python

Visibility

public

Author

rednik96

Created

2023-05-09T08:59:49.97765Z

Updated

2023-05-09T08:59:49.97765Z

from pathlib import Path

tuple_collection = set()

a = ('Repo1', '', 'Group1')
b = ('Repo1', '', 'Group1')
tuple_collection.add(a)
print(b in tuple_collection)

c = ('Repo1', Path('.'), 'Group1')
d = ('Repo1', Path('.'), 'Group1')
tuple_collection.add(c)
print(d in tuple_collection)

for x in tuple_collection:
    print(x)
INFO