#!/usr/local/bin/python2 def d(): def f(): pass print d.func_globals