On Apr 21, 4:52 pm, "Nicolas M. Thiery" <nicolas.thi...@u-psud.fr> wrote:
Hi Nicolas, > Oops, running late reading sage-devel ... :) <SNIP> > Well, you might be disappointed: in my case it turns out that this > probably stems from the fact that I have %pdb on by default (pdb 1 in > ipython/ipythonrc). Ok, having non-default settings in ipython/ipythonrc is the cause of many problems, i.e. color settings there are known to cause trouble. > > Please export SAGE_PEXPECT_LOG to something non-empty and rerun the > > test. You will find some logs in $DOT_SAGE/pexpect_logs/ - look for > > the most recent one and check the end of the output. Or is this not > > using pexpect? > > Thanks for the debugging tip. Here is the log: <SNIP> > sage: del x > del x > sage: print x > print x > --------------------------------------------------------------------------- > NameError Traceback (most recent call last) > > /home/nthiery/.sage/temp/zephyr/8585/_home_nthiery__sage_init_sage_0.py in > <module>() > > NameError: name 'x' is not defined > > > <ipython console>(1)<module>() > > ipdb> > ------------------------------------------------------------------------------ > > Should I post this on trac? Should an inferior sage always make sure > %pdb is turned off, or should the pexpect interface handle ipdb prompts? I am not sure if this is something we want or should work around. My POV on this is as mentioned above if you do custom ipython/ipythonrc settings you are on your own, but I think that someone else might have a good argument to work around this problem. So let's see if there are dissenting opinions :) Out of curiosity: What happens if you revert your changes to ipython/ ipythonrc - do you still get failures and just different error messages since pdb no longer automatically kicks in? > Best, > Nicolas Cheers, Michael > -- > Nicolas M. Thiéry "Isil" <nthi...@users.sf.net>http://Nicolas.Thiery.name/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---