a = "(1,2,3)" I want convert a to tuple:(1,2,3),but tuple(a) return ('(', '1', ',', '2', ',', '3', ')') not (1,2,3) -- http://mail.python.org/mailman/listinfo/python-list
- Re: how to convert string to list or tuple flyaflya
- Re: how to convert string to list or tuple Simon Brunning
- Re: how to convert string to list or tuple Fredrik Lundh
- Re: how to convert string to list or tuple Steven D'Aprano
- Re: how to convert string to list or tuple Dan Bishop
- Re: how to convert string to list or tuple Duncan Booth
- Re: how to convert string to list or tuple John Roth
- Re: how to convert string to list or tuple Steven Bethard
- Re: how to convert string to list or tupl... Duncan Booth
- Re: how to convert string to list or... Steven Bethard
- Re: how to convert string to lis... Duncan Booth