[Python-ideas] RFC: PEP: Add dict.__version__

Ethan Furman ethan at stoneleaf.us
Sun Jan 10 15:32:50 EST 2016


On 01/10/2016 12:02 PM, Victor Stinner wrote:
> 2016-01-10 18:57 GMT+01:00 Steven D'Aprano <steve at pearwood.info>:
>>> Do all custom Mappings need to implement __version__?
>>
>> I believe the answer to that is No, but the PEP probably should clarify
>> that.
>
> In the PEP, I wrote "The PEP is designed to implement guards on
> namespaces, only the dict type can be used for namespaces in practice.
> collections.UserDict is modified because it must mimicks dict.
> collections.Mapping is unchanged."
> https://www.python.org/dev/peps/pep-0509/#changes
>
> Is it enough? If no, what do you suggest to be more explicit?

It is enough.

--
~Ethan~



More information about the Python-ideas mailing list