A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2018-February/152126.html below:

[Python-Dev] Immutability vs. hashability

[Python-Dev] Immutability vs. hashability [Python-Dev] Immutability vs. hashabilityAntoine Pitrou solipsis at pitrou.net
Mon Feb 5 08:48:37 EST 2018
On Sun, 4 Feb 2018 14:31:06 -0800
Guido van Rossum <guido at python.org> wrote:
> On Sun, Feb 4, 2018 at 11:59 AM, Chris Barker - NOAA Federal <
> chris.barker at noaa.gov> wrote:  
> 
> > I think the folks that are concerned about this issue are quite right
> > — most Python users equate immutable and hashable—so the dataclass API
> > should reflect that.
> >  
> 
> Since they are *not* equivalent (consider a tuple containing a list) I'm
> not at all convinced that any API in the core language should "reflect"
> this misconception, depending on how you meant that.

+1 from me.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4