diff options
author | Georg Brandl <georg@python.org> | 2005-08-24 07:36:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-24 07:36:21 (GMT) |
commit | 00ccbb67183641114dfeb119d5efed2d2d5282d4 (patch) | |
tree | 58d18157323e347d5bea1eb81fb3ae9acd5134e3 | |
parent | 42cd573c5a5bac9c5bfb8811bd7076febd4baffb (diff) | |
download | cpython-00ccbb67183641114dfeb119d5efed2d2d5282d4.zip cpython-00ccbb67183641114dfeb119d5efed2d2d5282d4.tar.gz cpython-00ccbb67183641114dfeb119d5efed2d2d5282d4.tar.bz2 |
backport bug [ 1192315 ] 'clear -1' in pdb
-rwxr-xr-x | Lib/pdb.py | 5 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -450,11 +450,14 @@ class Pdb(bdb.Bdb, cmd.Cmd): return numberlist = arg.split() for i in numberlist: + if not (0 <= i < len(bdb.Breakpoint.bpbynumber)): + print 'No breakpoint numbered', i + continue err = self.clear_bpbynumber(i) if err: print '***', err else: - print 'Deleted breakpoint %s ' % (i,) + print 'Deleted breakpoint', i do_cl = do_clear # 'c' is already an abbreviation for 'continue' def do_where(self, arg): @@ -70,6 +70,8 @@ Library - The sets module can now properly compute s-=s and s^=s as an empty set. +- Bug #1192315: Disallow negative arguments to clear() in pdb. + - Patch #827386: Support absolute source paths in msvccompiler.py. - Fix a problem in Tkinter introduced by SF patch #869468: delete bogus |