On 1/14/2014 8:27 PM, Steven D'Aprano wrote:
In the midst of that discussion, Guido van Rossum made a comment about subclassing dicts:[quote] From: Guido van Rossum <[email protected]> Date: Tue, 14 Jan 2014 12:06:32 -0800 Subject: Re: [Python-Dev] PEP 460 reboot Personally I wouldn't add any words suggesting or referring to the option of creation another class for this purpose. You wouldn't recommend subclassing dict for constraining the types of keys or values, would you? [end quote] https://mail.python.org/pipermail/python-dev/2014-January/131537.html This surprises me,
I was slightly surprised too. I understand not wanting to add a subclass to stdlib, but I believe this was about adding words to the doc. Perhaps he did not want to over-emphasize one particular possible subclass by putting the words in the doc.
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list
