[code.view]

[top] / python / PyMOTW / warnings / warnings_repeated.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import warnings
     
     def function_with_warning():
         warnings.warn('This is a warning!')
         
     function_with_warning()
     function_with_warning()
     function_with_warning()
     

[top] / python / PyMOTW / warnings / warnings_repeated.py

contact | logmethods.com