[Python-Dev] Dataclasses and correct hashability

Guido van Rossum guido at python.org
Tue Feb 6 16:06:12 EST 2018


On Tue, Feb 6, 2018 at 12:44 PM, Ethan Furman <ethan at stoneleaf.us> wrote:

> Although, couldn't we add a field-level frozen attribute (using property
> for the implementation), and check that all equality fields are properties
> as well as hashable?
>

That would be a totally unrelated feature request. Let's wait whether it's
actually needed a lot before designing it.

-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180206/73239ef4/attachment.html>


More information about the Python-Dev mailing list