Re: convert a string to tuple
- From: Steven Bethard <steven.bethard@xxxxxxxxx>
- Date: Tue, 31 May 2005 14:51:24 -0600
bcannon@xxxxxxxxx wrote:
Pass it to eval:
(1, 2, 3, 4, 5)eval('(1, 2, 3, 4, 5)')
Just be sure you know where your strings come from. You wouldn't want someone to pass you
"""__import__('os').system('rm -rf /')"""
and then send that to eval. =)
STeVe .
- References:
- convert a string to tuple
- From: querypk
- Re: convert a string to tuple
- From: bcannon@xxxxxxxxx
- convert a string to tuple
- Prev by Date: Re: convert a string to tuple
- Next by Date: Re: working with pointers
- Previous by thread: Re: convert a string to tuple
- Next by thread: Re: convert a string to tuple
- Index(es):