Peter Otten <__pete...@web.de> wrote: >assert s.startswith("[") >assert s.endswith("]") >s = s[1:-1]
s.strip('[]') (I suppose it all depends on how much you can trust the consistency of the input.) -- \S under construction -- http://mail.python.org/mailman/listinfo/python-list