[docs] [issue29089] dictionary keys described incorrectly in tutorial
report at bugs.python.org
Fri Dec 30 00:32:30 EST 2016
Raymond Hettinger added the comment:
I'm going to concur with the other respondents on this. As a Python teacher, this is how I teach what should be used as a dictionary key.
While immutability and hashability aren't equivalent, it is a good first approximation. Also, even though it is true that you could make a hashable object that is mutable, it is generally a bad practice that leads to regrets.
I'm going to close this. If someone wants to change the styling of the tutorial, that can reasonably be discussed in another patch.
Thank you for your ideas, but we're going to pass on this one. The tutorial is a place where it can be counter-productive to 1) make discussions too long, 2) go into atypical practices, 3) add too many caveats in a effort to be overly precise, etc. Also, this part of the tutorial has been around for many years and has done a reasonably good job at educating its readers.
resolution: -> rejected
status: open -> closed
Python tracker <report at bugs.python.org>
More information about the docs