[code.view]

[top] / python / PyMOTW / pdb / pdb_next.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     
     import pdb
     
     def calc(i, n):
         j = i * n
         return j
     
     def f(n):
         for i in range(n):
             j = calc(i, n)
             print i, j
         return
     
     if __name__ == '__main__':
         pdb.set_trace()
         f(5)
     

[top] / python / PyMOTW / pdb / pdb_next.py

contact | logmethods.com