is it possible to call a function every x-number of lines that get interpreted?
<p>I am trying to do a progress bar.</p>

<p>Would it be possible to count the number of execution lines on a script and associate each execution line with a function so that it is executed every line or every 5 lines?</p>

<p>My plan is to update a progress bar every time a line is executed.</p>

<p>Is it possible? Can I use decorators to do it?</p>
