add a local variables to a function
<p>is it possible to add a local varible to a function, just before calling it ? if yes how ?</p>

<p>EDIT:REASON
i noticed that all my views in django are using </p>

<pre><code>render_to_response(template_name,locals())
</code></pre>

<p>now i created a middleware and i wanted to add one more local variable using the </p>

<pre><code>def process_view():
</code></pre>

<p>method of it .so that i don't have to modify the views .        </p>
