Exercise 7.3 - Solution

(a) Using the Debugger

>>> import fileparse
>>> import pdb
>>> pdb.runcall(fileparse.parse_csv,'Data/portfolio.csv', types=[str, int, float])
...

Once you’ve entered the debugger, use the s command to single step through the execution.

(b) Using the Profiler

The output of the profiler will depend on what program you used.

[ Back ]