Is there a way to slice a string with a tuple without unpacking
the tuple?
>>> myString = "111-222-333-444"
>>> myString[ 4: 7 ]
'222'
Is there some way I could perform an identical slicing operation
with a tuple like ( 4, 7 ) without having to unpack the tuple?
>>> myTuple = ( 4, 7 )
Thanks!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to