Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • $\begingroup$ Thanks. I wouldn't have known what had caused it. I only know most of the time it's my work that's at fault :) $\endgroup$ Commented Jul 7, 2014 at 12:56
  • $\begingroup$ @elksie5000 : I have added how to debug the call. I hope the last call is what you would expect from a successful call to the function (?). Otherwise, it is always good to know how to step into the code with pdb :) $\endgroup$ Commented Jul 7, 2014 at 13:44
  • $\begingroup$ I must admit pdb was something I was looking at again after working through the Python for Data Analysis book by Wes McKinney. I already work in IPython, but had been reasonably happy with print statements. Thank you again. $\endgroup$ Commented Jul 7, 2014 at 15:03
  • $\begingroup$ As a side note, the debugger prompt says "ipdb" because it is the ipython debugger - this is an extra install in my setup. Under normal circumstances, it would be the regular pdb that is called. Just noticed this difference. $\endgroup$ Commented Jul 7, 2014 at 15:27