[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r74366, and merged back to 3.1 branch in r74367. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6126

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Reading this patch, is it normal that the file is opened in text mode without an encoding specified? What if the source file uses a different encoding than the default system one? -- nosy: +pitrou ___

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-11 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That's a good question :) A quick test shows that exec() does honor coding cookies in code given as a bytestring, so simply changing to open(..., rb) should be fine. -- ___ Python tracker

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-09 Thread Alex Grönholm
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: Why has this not been resolved yet? Not having a working debugger is a severe hindrance to the acceptance of Py3k. -- nosy: +agronholm ___ Python tracker rep...@bugs.python.org

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Attached patch confirmedly fixes this. Will commit as soon as svn is back up. -- assignee: - georg.brandl keywords: +patch nosy: +georg.brandl Added file: http://bugs.python.org/file14679/pdb-fix.diff

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-06-02 Thread Eric Promislow
Eric Promislow er...@activestate.com added the comment: Similar problem with 3.1rc1: C:\...c:\Python31rc1\python.exe -m pdb hello01.py --Return-- c:\python31rc1\lib\encodings\cp437.py(19)encode()-b'Hello' - return codecs.charmap_encode(input,self.errors,encoding_map)[0] (Pdb) b 2 *** Blank or

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-05-27 Thread Eric Promislow
New submission from Eric Promislow er...@activestate.com: I have a simple test file, test01.py, with this output: $ cat test01.py #!/usr/bin/env python print(Line 1) print(Line 2) print(Line 3) $ $ # Now try debugging it. $ python3.0 -mpdb test01.py --Return--