[Python-Dev] Add a frozendict builtin type (original) (raw)

Tres Seaver tseaver at palladion.com
Tue Feb 28 00:42:24 CET 2012


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On 02/27/2012 06:34 PM, Victor Stinner wrote:

tuple and frozenset can only contain immutables values.

Tuples can contain mutables::

$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information.

({},) ({},) $ python3 Python 3.2 (r32:88445, Mar 10 2011, 10:08:58) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. ({},) ({},)

Tres. - --

Tres Seaver +1 540-429-0999 tseaver at palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9MFOAACgkQ+gerLs4ltQ5mjQCgi1U7CloZUy0u0+c0mlLlIuko +IIAoLqKGcAb6ZAEY5wpkwvtgRa6S+LV =7Mh5 -----END PGP SIGNATURE-----



More information about the Python-Dev mailing list