[issue29089] Python 2 dictionary keys described incorrectly

2016-12-27 Thread Xezlec
New submission from Xezlec: In section 5.5 on the page https://docs.python.org/2/tutorial/datastructures.html#dictionaries the requirements given for dictionary keys are not correct. Specifically, it is claimed that only immutable objects (and tuples containing only immutable objects) may be

[issue29089] dictionary keys described incorrectly in tutorial

2016-12-27 Thread Xezlec
Xezlec added the comment: > It's the tutorial. Probably better to just leave it alone. Precise > understanding can come later. But the problem isn't that it's imprecise. It's flat-out wrong. My opinion would be that it's always a bad idea to put wrong in

[issue29089] dictionary keys described incorrectly in tutorial

2016-12-27 Thread Xezlec
Xezlec added the comment: > Perhaps the sentence about a tuple pointing to a mutable could be tightened > up, though, by saying that if a tuple points to something that can not itself > be a dictionary key, then that tuple can not be a dictionary key. That would be great. Thank