[code.view]

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

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2010 Doug Hellmann.  All rights reserved.
     #
     
     class MyObj(object):
     
         def __init__(self, num_loops):
             self.count = num_loops
     
         def go(self):
             for i in range(self.count):
                 print i
             return
     
     if __name__ == '__main__':
         MyObj(5).go()
     

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

contact | logmethods.com