Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Add a frozendict builtin type

Victor Stinnervictor.stinner at haypocalc.com
Tue Feb 28 11:12:02 CET 2012


> A frozendict type is a common request from users and there are various>> implementations. There are two main Python implementations:>> Perhaps this should also detail why namedtuple is not a viable alternative.It doesn't have the same API. Example: frozendict[key] vsnamedtuple.attr (namedtuple.key). namedtuple has no .keys() or.items() method.Victor


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp