[IPython-user] conflict between IPython and profile

Yaroslav Bulatov yaroslavvb at gmail.com
Thu Sep 22 11:17:08 CDT 2005


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()')




More information about the IPython-user mailing list