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

Ethan Furman ethan at stoneleaf.us
Sun Jan 10 01:25:25 EST 2016


On 01/09/2016 09:23 PM, Chris Angelico wrote:
> On Sun, Jan 10, 2016 at 3:24 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>> On Sat, Jan 09, 2016 at 05:18:40PM -0500, Terry Reedy wrote:
>>> On 1/8/2016 4:27 PM, Victor Stinner wrote:
>>>
>>>> Add a new read-only ``__version__`` property to ``dict`` and
>>>> ``collections.UserDict`` types, incremented at each change.
>>>
>>> Another reason to hide __version__ from the Python level is that its use
>>> seems to me rather tricky and bug-prone.
>>
>> What makes you say that? Isn't it a simple matter of:
>>
>>  [snip]
>>
>> which doesn't seen tricky or bug-prone to me.
>
> That doesn't. I would, however, expect that __version__ is a read-only
> attribute.

You mean like it says in the first quote of this message?  ;)

--
~Ethan~


More information about the Python-ideas mailing list