Feb-22-2017, 11:41 AM
You don't have to worry about how things are stored. There is an immutable one and a mutable one. They could be stored exactly the same way, with just an "immutable" flag somewhere. Or one is stored as a group of contiguous bytes (or ints), while the other is a bunch of individual byte objects (control block+byte/int value). The immutable one can be used in sets and as a dictionary key because it is hashable. Not the other. The immutable one is iterable and indexable, but that doesn't make it a list, even if the lists are iterable and indexable.
A very informative video on the subject: https://www.youtube.com/watch?v=_AEJHKGk9ns
A very informative video on the subject: https://www.youtube.com/watch?v=_AEJHKGk9ns
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Your one-stop place for all your GIMP needs: gimp-forum.net