day1/Session-4.tex
changeset 50 aabaf8ec0a08
parent 49 2adb90f9e287
child 54 c3fe152b3539
equal deleted inserted replaced
49:2adb90f9e287 50:aabaf8ec0a08
   328     \begin{itemize}
   328     \begin{itemize}
   329         \item  \kwrd{print} based strategy
   329         \item  \kwrd{print} based strategy
   330         \item Process: Hypothesis, test, refine, rinse-repeat
   330         \item Process: Hypothesis, test, refine, rinse-repeat
   331         \item Using \typ{\%debug} and \typ{\%pdb} in IPython
   331         \item Using \typ{\%debug} and \typ{\%pdb} in IPython
   332     \end{itemize}
   332     \end{itemize}
   333     \inctime{15} 
       
   334 \end{frame}
   333 \end{frame}
   335 
   334 
   336 \begin{frame}[fragile]
   335 \begin{frame}[fragile]
   337 \frametitle{Debugging: example}
   336 \frametitle{Debugging: example}
   338 \small
   337 \small
   372 NameError: global name 'spam' is not defined
   371 NameError: global name 'spam' is not defined
   373 > /media/python/iitb/workshops/day1/mymodule.py(2)test()
   372 > /media/python/iitb/workshops/day1/mymodule.py(2)test()
   374       0     print spam
   373       0     print spam
   375 ipdb>
   374 ipdb>
   376 \end{lstlisting}
   375 \end{lstlisting}
       
   376 \inctime{15} 
   377 \end{frame}
   377 \end{frame}
   378 
   378 
   379 \begin{frame}[fragile]
   379 \begin{frame}[fragile]
   380 \frametitle{Debugging: Exercise}
   380 \frametitle{Debugging: Exercise}
       
   381 \inctime{10}
   381 \end{frame}
   382 \end{frame}
   382 
   383 
   383 \begin{frame}
   384 \begin{frame}
   384   \frametitle{What did we learn?}
   385   \frametitle{What did we learn?}
   385   \tableofcontents
   386   \begin{itemize}
   386   % You might wish to add the option [pausesections]
   387     \item Creating and using Dictionaries
       
   388     \item Creating and using Sets
       
   389     \item Advances Functions: default arguments, keyword arguments
       
   390     \item Functional Programming, list comprehensions
       
   391     \item Errors and Exceptions in Python
       
   392     \item Debugging: How to use pdb, \%pdb and \%debug in IPython
       
   393   \end{itemize}
   387 \end{frame}
   394 \end{frame}
   388 \end{document}
   395 \end{document}