[issue16744] sys.path.append causes wrong behaviour

2012-12-21 Thread Christian Heimes
Christian Heimes added the comment: You have to either quote the backslashes or use raw strings: >>> "\a" '\x07' >>> "\\a" '\\a' >>> r"\a" '\\a' -- nosy: +christian.heimes resolution: -> invalid status: open -> closed ___ Python tracker

[issue16744] sys.path.append causes wrong behaviour

2012-12-21 Thread rappy
New submission from rappy: In bug.py print gives ['C:\\Users\\Glenn\\Desktop', 'C:\\Windows\\system32\\python27.zip', C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C:\\Users\\Glenn\\D