[Python-Dev] Add a frozendict builtin type

Steven 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

AltStyle によって変換されたページ (->オリジナル) /