<br><br><div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">ÌÕ×æºé</b> <<a href="mailto:andy.tao@freeborders.com.cn">andy.tao@freeborders.com.cn</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Yes, it just a demo path, not a real path,
:-)</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>But when I use capital character, it work well, please
see follow example:</span></font></div></div></blockquote><div><br>yes of course, since \B isn't a recognized escape sequence (nor is \w)... (case sensitivity you know...) </div><br>/S<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span class="q">IronPython 1.1
(1.1) on .NET 2.0.50727.42<br>Copyright (c) Microsoft Corporation. All rights
reserved.<br>>>> import sys<br>>>>
sys.path.append("c:\\bin")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib',
'c:\\bin']<br>>>> sys.path.append("c:\windows")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin',
'c:\\windows']<br></span><font color="#ff0000"><span class="q">>>>
sys.path.append("c:\windows\bin")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin',
'c:\\windows', 'c:\\windows\x08in']<br></span>>>>
sys.path.append("c:\windows\Bin")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin',
'c:\\windows', 'c:\\windows\x08in',
'c:\\windows\\Bin']<br></font>>>></font></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Simon Dahlbacka
[mailto:<a href="mailto:simon.dahlbacka@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">simon.dahlbacka@gmail.com</a>] <br><b>Sent:</b> Monday, July 16, 2007
15:57<br><b>To:</b> <a href="mailto:andy.tao@freeborders.com.cn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andy.tao@freeborders.com.cn</a>; Discussion of
IronPython<br><b>Subject:</b> Re: [IronPython] Bug report<br></font><br></div><div><span class="e" id="q_113ce8df273fa454_5">
<div></div>That's not a bug..<br><br>backslash is an escape character and \b
happens to be the escape sequence for the bell character.<br>You either need to
escape the backslashes (with another backslash) or use raw
strings<br><br>e.g.<br>"c:\\windows\\bin"<br>r"c:\windows\bin"<br><br>/Simon<br><br>ps.
who is adding a bin folder under c:\windows, that doesn't sound like the
greatest idea.. ? ..or was it just a "random" name for demo purposes?
<br><br><br>
<div><span class="gmail_quote">On 7/16/07, <b class="gmail_sendername">ÌÕ×æºé</b>
<<a href="mailto:andy.tao@freeborders.com.cn" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">andy.tao@freeborders.com.cn</a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div><font face="Arial" size="2">Hi<span> Dino</span>,<span> </span> I met a
IronPython bug, does this bug has been reported?<br> <br> IronPython
1.1 (1.1) on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights
reserved.<br>>>> import sys<br>>>>
sys.path.append("c:\\bin")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib',
'c:\\bin']<br>>>> sys.path.append("c:\windows")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib',
'c:\\bin', 'c:\\windows']<br>>>>
sys.path.append("c:\windows\bin")<br>>>>
sys.path<br>['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib',
'c:\\bin', 'c:\\windows', 'c:\\windows\x08in']<br>>>>
<br> <br> <br>Andy.Tao
</font></div></div><br>_______________________________________________<br>users
mailing list<br><a href="mailto:users@lists.ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br><br></blockquote></div><br></span></div></div>
</blockquote></div><br>