Detect File Change Without Polling
<p>I'm trying to use a method within a Python program to detect whether a file on the file system has been modified.  I know that I could have something run on an every-5-seconds to check the last modification date off of the system, but I was curious as to whether there's an easier method for doing this, without needing to require my program to check repeatedly.</p>

<p>Does anyone know of such a method?</p>
