Python Forum
Creating a set with dataclass and dict
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a set with dataclass and dict
#2
I'm disappointed that I didn't find that information at https://docs.python.org/3/tutorial/datas....html#sets
They do mention it for dictionaries, but still not as clearly as I would have liked.

The easiest workaround for you is to use a frozenset instead of a set. If that doesn't solve your problem please describe the goal a bit more clearly.
Reply


Messages In This Thread
RE: Creating a set with dataclass and dict - by micseydel - Jan-15-2020, 06:01 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  append str to list in dataclass flash77 6 712 Mar-14-2024, 06:26 PM
Last Post: flash77
  Sort a dict in dict cherry_cherry 4 91,069 Apr-08-2020, 12:25 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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