Using Fredericks advice I managed to track down the problem - it was really very stupid. I had accidentally cast the list to a string earlier in another part of the code. Its a bit of an anticlimax really - not mysterious at all (just mysteriously remiss on my part)
Apologies for not simple posting the entire code earlier on - but thanks for everyone for puttin up with me, and in particular to Frederick for his very useful hint :-) Cheers, Ben John Machin wrote: > Ben wrote: > > ...and when I print out the string, it is still formatted as one would > > expect a list to be: > > > > <type 'str'> "['01', '02', '03', '04']" > > > > We know that. Fredrik deduced it and told you well over an hour ago. > > Show us the code that is creating instances of the panel class ... > > panel1 = > panel(number=?,level=?,location=?,mops=????????????????,matrix=?) > What are you passing as the 4th positional arg > ^^^^^^^^^^^^^^^^^^^^^^^ ??? -- http://mail.python.org/mailman/listinfo/python-list