[IronPython] Bug report

Simon Dahlbacka simon.dahlbacka at gmail.com
Mon Jul 16 00:57:08 PDT 2007


That's not a bug..

backslash is an escape character and \b happens to be the escape sequence
for the bell character.
You either need to escape the backslashes (with another backslash) or use
raw strings

e.g.
"c:\\windows\\bin"
r"c:\windows\bin"

/Simon

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?


On 7/16/07, 陶祖洪 <andy.tao at freeborders.com.cn> wrote:
>
>  Hi Dino,  I met a IronPython bug, does this bug has been reported?
>
>  IronPython 1.1 (1.1) on .NET 2.0.50727.42 Copyright (c) Microsoft
> Corporation. All rights reserved.
> >>> import sys
> >>> sys.path.append("c:\\bin")
> >>> sys.path
> ['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin']
> >>> sys.path.append("c:\windows")
> >>> sys.path
> ['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin',
> 'c:\\windows']
> >>> sys.path.append("c:\windows\bin")
> >>> sys.path
> ['D:\\Python\\IronPython', 'D:\\Python\\IronPython\\Lib', 'c:\\bin',
> 'c:\\windows', 'c:\\windows\x08in']
> >>>
>
>
> Andy.Tao
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20070716/34f63786/attachment.html 


More information about the users mailing list