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

Serhiy Storchaka storchaka at gmail.com
Sat Jan 9 03:55:29 EST 2016


On 09.01.16 09:57, Victor Stinner wrote:
> Le samedi 9 janvier 2016, Serhiy Storchaka
>     This may be not the best name for a property. Many modules already
>     have the __version__ attribute, this may make a confusion.
>
> It's fine to have a __version__ property and a __version__ key in the
> same dict. They are different.

Oh, I meant not a confusion between a property and a key, but between 
properties of two related objects. Perhaps one time we'll want to add 
the property with the same meaning directly to module object, but it is 
already in use.

> "Version" is really my favorite name for the name feature. Sometimes I
> saw "timestamp", but in my opinion it's more confusing because it's not
> related to a clock.

Nick's "__cache_token__" LGTM.



More information about the Python-ideas mailing list