[Python-Dev] performance of {} versus dict()

Stephen J. Turnbull stephen at xemacs.org
Thu Nov 15 05:11:24 CET 2012


Mark Adam writes:

 > Easy:  dict should have a (user substitutable) collision function that
 > is called in these cases.

"I smell overengineering."

 > This would allow significant functionality with practically no
 > cost.

We already have that functionality if we want it; just define an
appropriate mapping class.

I don't need or want it, so I can ignore it, but I suspect to get
anywhere with this proposal you're going to need to show that this
"significant functionality" needs to be in syntax.


More information about the Python-Dev mailing list