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

2011-11-17 Thread Nu Kvar
Nu Kvar asafgreenb...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue7750

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

2011-11-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7750 ___

[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 jar...@jaraco.com: 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

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

2010-01-21 Thread Brian Curtin
Brian Curtin cur...@acm.org 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

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

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

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

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

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

2010-01-21 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Works for me, repr will escape the slash. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7750 ___

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

2010-01-21 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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 cur...@acm.org 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