[issue42348] Language Reference: Set items

2020-11-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, rhettinger ___ Python tracker ___ __

[issue42348] Language Reference: Set items

2020-11-13 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : The data types section of the language reference (https://docs.python.org/3.10/reference/datamodel.html#the-standard-type-hierarchy) has this description directly under the Set type (which has 2 childs, set and frozenset). > These represent unordered, f

[issue42348] Language Reference: Set items

2020-11-13 Thread Yash Shete
Yash Shete added the comment: Should it be "These represents hashable objects" -- nosy: +Pixmew ___ Python tracker ___ ___ Python-b

[issue42348] Language Reference: Set items

2020-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend leaving the text as is, and possibly creating a new FAQ entry discussing the relationship between immutability and hashability (something that I consider to be an intermediate or advanced topic). Other thought: * The set discussion should rem

[issue42348] Language Reference: Set items

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond's last point is that set objects should be immutably hashable. I would say 'must be' in the sense that mutably hashable objects break sets in various ways, starting with uniqueness. If we were to make a change, I think the replacement should be 'im