On 05/04/2021 17:52, Chris Angelico wrote:
I don't understand.  What semantic difference could there be between
    x = { 1: 2 }    ;    y = [3, 4]   ;   z = (5, 6)
and
    x, y, z = { 1:2 }, [3, 4], (5, 6)
?  Why is it not safe to convert the latter to the former?
But I withdraw "set" from my "safe" list because I now realise that "set" could be reassigned.

Correction: set literals like {7,8} should still be OK as far as I can see.
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to