On 8/9/2017 9:25 AM, Marko Rauhamaa wrote:
> r...@zedat.fu-berlin.de (Stefan Ram):
>
>> Steve D'Aprano <steve+pyt...@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

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to