A
Aaron Brady
Hi, got a freeze when running 'pdb' in 3.0.
The program executes correctly with the command 'c', but freezes part
way through when running successive 'n' commands. Platform Windows XP
Home. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32
bit (Intel)] on win32. The 'list' command was also not working
properly, printing '[EOF]' many places, even when prompted with
arguments for 'first' and 'last'.
/Screen dump:
C:\Documents and Settings\usr\Desktop\working>\programs
\python30\python -m pdb picktest.py
--Return--
0
1
2
The program finished and will be restarted
--Return--
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
0--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
--Return--
(Pdb) n
/Program:
class A:
def f( self ):
self.x= 0
print( self.x )
def g( self ):
self.x+= 1
print( self.x )
a= A()
a.f()
a.g()
a.g()
The program executes correctly with the command 'c', but freezes part
way through when running successive 'n' commands. Platform Windows XP
Home. Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32
bit (Intel)] on win32. The 'list' command was also not working
properly, printing '[EOF]' many places, even when prompted with
arguments for 'first' and 'last'.
/Screen dump:
C:\Documents and Settings\usr\Desktop\working>\programs
\python30\python -m pdb picktest.py
--Return--
(Pdb) c<string>(5)A()->None
0
1
2
The program finished and will be restarted
--Return--
(Pdb) n<string>(5)A()->None
--Return--
-> return self.raw.closedc:\programs\python30\lib\io.py(757)closed()->False
(Pdb) n
--Return--
-> return self.buffer.closedc:\programs\python30\lib\io.py(1467)closed()->False
(Pdb) n
--Return--
-> return codecs.charmap_encode(input,self.errors,encoding_map)[0]c:\programs\python30\lib\encodings\cp437.py(19)encode()->b'0'
(Pdb) n
--Return--
-> return self.raw.closedc:\programs\python30\lib\io.py(757)closed()->False
(Pdb) n
0--Return--
-> return writtenc:\programs\python30\lib\io.py(1060)write()->1
(Pdb) n
--Return--
-> return lengthc:\programs\python30\lib\io.py(1498)write()->1
(Pdb) n
--Return--
-> return self.raw.closedc:\programs\python30\lib\io.py(757)closed()->False
(Pdb) n
--Return--
-> return self.buffer.closedc:\programs\python30\lib\io.py(1467)closed()->False
(Pdb) n
--Return--
-> return codecs.charmap_encode(input,self.errors,encoding_map)[0]c:\programs\python30\lib\encodings\cp437.py(19)encode()->b'\n'
(Pdb) n
--Return--
-> return self.raw.closedc:\programs\python30\lib\io.py(757)closed()->False
(Pdb) n
--Return--
-> return writtenc:\programs\python30\lib\io.py(1060)write()->1
(Pdb) n
/Program:
class A:
def f( self ):
self.x= 0
print( self.x )
def g( self ):
self.x+= 1
print( self.x )
a= A()
a.f()
a.g()
a.g()