In addition you can use list comprehensions wherever lists are expected (parameter to a function call, for instance), so this allows you to create ad-hoc lists on the fly.
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