When I run the following code, I get "NameError: name 'a' is not
defined" in "C:\Python23\lib\profile.py", but if I comment out the
"ipshell = ..." line, the error doesn't happen, why?
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
import profile;
def a(): pass;
profile.run('a()')