On Mon, 7 Mar 2005 18:58:20 -0500, Leeds, Mark <[EMAIL PROTECTED]> wrote:I want to get rid of the beginning And ending quotes.
'8023 'my_string = '"8023 "' my_string.strip('"')
Note the risk in this approach, as it blindly removes any number of leading and trailing quotation marks, not just the first and last ones.
-Peter -- http://mail.python.org/mailman/listinfo/python-list