__globals__ in imported function is much different than __globals__ of function in main module
<p>File <strong>a.py</strong>:</p>

<pre><code>def f():
  pass
</code></pre>

<p>File <strong>main.py</strong>:</p>

<pre><code>import a
print("f globals")
print(a.f.__globals__)

def g():
  pass

print("g globals")
print(g.__globals__)
</code></pre>

<p><code>a.f.__globals__</code> have much more elements than <code>g.__globals__</code>. At the first look it seems that built-in functions and types are in <code>a.f.__globals__</code>. Why these two dictionaries are different?</p>
