#!/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