[issue7750] IOError when launching script under pdb with backslash in script path

2011-11-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: This bug doesn't appear to be present in 3.1, so the 2.7 patch is all that applies at this time. -- resolution: -> fixed status: open -> closed versions: -Python 2.6 ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2011-11-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f7dd5178f36a by Jason R. Coombs in branch '2.7': PDB now will properly escape backslashes in the names of modules it executes. Fixes #7750 http://hg.python.org/cpython/rev/f7dd5178f36a -- nosy: +python-dev

[issue7750] IOError when launching script under pdb with backslash in script path

2011-11-17 Thread Nu Kvar
Nu Kvar added the comment: this bug exist also in python 2.5 (of course) and the same patch as above fixes it (of course). -- nosy: +nukvar ___ Python tracker ___ __

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: For completeness, I've back-ported the patch to the release26-maint branch. -- Added file: http://bugs.python.org/file15971/fix with test (releas26-maint).patch ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Here's a new patch against the trunk that addresses Brian's concerns. -- keywords: +patch versions: +Python 2.7 Added file: http://bugs.python.org/file15970/fix with test.patch ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: Can you add your test to Lib/test/test_pdb.py? If the test fails the "hello world" script won't be removed, it won't make it to os.remove(). You'll need to make sure the file gets deleted in any case. Could use a temporary file. Can you condense the cmd stuff

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: The attached test-case identifies the failure mode (and verifies that the proposed fix corrects the issue). -- Added file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: Works for me, repr will escape the slash. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I suspect this patch may fix the problem. I haven't yet had time to test it. Index: Lib/pdb.py === --- Lib/pdb.py (revision 77683) +++ Lib/pdb.py (working copy) @@ -1200,7 +1200,7 @@ se

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'm changing the title back to the original title. I don't believe the problem is reproducible using execfile. That is, if a properly-escaped path is passed to execfile, it works fine. So I believe the problem lies between when pdb takes control and where ex

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Brian Curtin
Brian Curtin added the comment: You can see the same thing by doing execfile(".\test.py"), which is what pdb makes under the hood, then bdb exec's it. -- nosy: +brian.curtin priority: -> normal stage: -> test needed type: -> behavior ___ Python t

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-21 Thread Jason R. Coombs
New submission from Jason R. Coombs : Under Python 2.6.4 64-bit on Windows 7 64-bit, I found that when launching a script under the debugger, if backslashes were in the script pathname, they were not interpreted correctly by the interpreter. For example, create a simple test script, "t-hellowo