Indexing layers without tuples

Hi all,

I’m new to the forum, and coming with a question: is there a way to reference layers without using boolean tuples with 20 elements? I’m using Blender 2.59.

I tried already with lists with integers (as in Blender 2.4x) and shorter tuples, but the error message insists to use these long, 20 element tuples, that are annoying to type and, despite being full of True/False values, they cannot be used for AND and OR operations…

Am I missing something? Is there a simpler way?

Thanks!