[IPython-user] conflict between IPython and profile

Fernando Perez Fernando.Perez at colorado.edu
Mon Dec 26 00:56:25 CST 2005

Yaroslav Bulatov wrote:
> 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()')

I'm very sorry to have dropped the ball for so long on this, only now am I 
beginning to make progress on my gigantic ipython backlog.

This was indeed a bug, I've just committed the fixes to SVN.  Many thanks for 
the report.



More information about the IPython-user mailing list