dict containing sets?
I'm having issuesto have a dict whose values are sets
first, Set doesn't implement copyinit so I had to wrap it
but now I get that
rag[current_label]
is a "function that might raise in a context that cannot"
what's the simplest way to build a dict whose values are sets? can I operate on the sets?
here's the code if needed
2 Replies
I ended up modifying the stdlib for Set and added the modified file to my project. Like you mentioned, it only needs one method to be a viable CollectionElement. Then you don't have to write a wrapper and treat can use it as is
thanks for the tip! i was heading there already. this is where inheritance might prove useful