<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>
Hi list,<br><br>  I'm trying to use a string with backslashes in a list. But Python parses strings in lists with repr().<br><br><br>>>> alist = ['a', 'b', 'c:\some\path']<br>>>> alist<br>['a', 'b', 'c:\\some\\path']<br>>>> print alist<br>['a', 'b', 'c:\\some\\path']<br><br><br>  I already tried str() and raw (r) but it didn't work. All I want is to keep a single backslash in the string since it is a path information.<br><br>  Can anyone help me, please?<br><br>  Thank you.<br><br /><hr />O Windows Live Spaces está aqui! Descubra como é fácil criar seu espaço na Web e sua rede amigos. <a href='http://spaces.live.com/signup.aspx' target='_new'>Confira!</a></body>
</html>