[code.view]

[top] / python / PyMOTW / linecache / linecache_missing_file.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     
     __version__ = "$Id$"
     #end_pymotw_header
     
     import linecache
     
     # Errors are even hidden if linecache cannot find the file
     no_such_file = linecache.getline('this_file_does_not_exist.txt', 1)
     print '\nNO FILE: ', no_such_file
     

[top] / python / PyMOTW / linecache / linecache_missing_file.py

contact | logmethods.com