From 21b02972adfb2220075b8b4c01924c9976654597 2017-03-15 15:07:48 From: Thomas Kluyver Date: 2017-03-15 15:07:48 Subject: [PATCH] Add docstrings for debugger commands Closes gh-10398 --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index ddd88f1..fcd1dac 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -486,6 +486,8 @@ class Pdb(OldPdb): pass def do_list(self, arg): + """Print lines of code from the current stack frame + """ self.lastcmd = 'list' last = None if arg: @@ -529,6 +531,10 @@ class Pdb(OldPdb): return inspect.getblock(lines[lineno:]), lineno+1 def do_longlist(self, arg): + """Print lines of code from the current stack frame. + + Shows more lines than 'list' does. + """ self.lastcmd = 'longlist' try: lines, lineno = self.getsourcelines(self.curframe)