Planning a Python Course for Beginners
Verde Denim
tdldev at gmail.com
Wed Aug 9 09:41:45 EDT 2017
On 8/9/2017 9:25 AM, Marko Rauhamaa wrote:
> ram at zedat.fu-berlin.de (Stefan Ram):
>
>> Steve D'Aprano <steve+python at pearwood.info> writes:
>>> There's a word for frozen list: "tuple".
>> Yes, but one should not forget that a tuple
>> can contain mutable entries (such as lists).
> Not when used as keys:
>
> >>> hash(([], []))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: unhashable type: 'list'
>
>
> Marko
Hence the word 'can' and not 'will' or 'must' or 'shall' ...
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the Python-list
mailing list