A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2012-March/117132.html below:

[Python-Dev] Add a frozendict builtin type

[Python-Dev] Add a frozendict builtin type [Python-Dev] Add a frozendict builtin typeSteven D'Aprano steve at pearwood.info
Thu Mar 1 01:36:15 CET 2012
Raymond Hettinger wrote:
> On Feb 29, 2012, at 3:52 PM, Victor Stinner wrote:
> 
>> I don't know if hardening Python is a compelling argument to add a new
>> builtin type.
> 
> It isn't.  
> 
> Builtins are for general purpose use.
> It is not something most people should use;
> however, if it is a builtin, people will be drawn 
> to frozendicts like moths to a flame.   
> The tuple-as-frozenlist anti-pattern shows
> what we're up against.

Perhaps I'm a little slow today, but I don't get this. Could you elaborate on 
tuple-as-frozenlist anti-pattern please?

i.e. what it is, why it is an anti-pattern, and examples of it in real life?



-- 
Steven

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