(objects as) mutable dictionary keys
Peter Maas
peter at somewhere.com
Mon Jan 17 07:27:05 EST 2005
Antoon Pardon schrieb:
> Dictionary lookup with mutable types like lists is a source of
> unpleasant surprises for the programmer and therefore impossible in
> Python.
>
>
> It is not impossible in Python. It may be discouraged but it is not
> impossible since I have already done so.
Wouldn't this raise a TypeError? Or did you wrap them with an object?
--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
More information about the Python-list
mailing list