Re: convert a string to tuple
- From: "bcannon@xxxxxxxxx" <bcannon@xxxxxxxxx>
- Date: 31 May 2005 13:46:14 -0700
Pass it to eval:
>>> eval('(1, 2, 3, 4, 5)')
(1, 2, 3, 4, 5)
Basically what you are doing it evaluating the repr of the tuple.
-Brett
.
- Follow-Ups:
- Re: convert a string to tuple
- From: Steven Bethard
- Re: convert a string to tuple
- References:
- convert a string to tuple
- From: querypk
- convert a string to tuple
- Prev by Date: running tkinter
- Next by Date: Re: convert a string to tuple
- Previous by thread: convert a string to tuple
- Next by thread: Re: convert a string to tuple
- Index(es):