Oops, running late reading sage-devel ...

On Thu, Apr 16, 2009 at 02:34:24PM -0700, mabshoff wrote:
> On Apr 16, 9:30 am, "Nicolas M. Thiery" <nicolas.thi...@u-psud.fr>
> wrote:
> > On Wed, Apr 15, 2009 at 11:56:37PM -0700, mabshoff wrote:
> 
> <SNIP>
> 
> > > > Anyone getting the same behaviour?
> >
> > > I have seen it fail on occasion, but not reproducibly. Does that fail
> > > for you every time in the same spot?
> >
> > Over a dozen run, it seems to hang systematically at this spot.
> 
> Good. Please do not throw this tree away since you are the only person
> I am aware of who can reproduce the problem.

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).

> 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:

------------------------------------------------------------------------------
----------------------------------------------------------------------
| Sage Version 3.4, Release Date: 2009-03-11                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: import cPickle
import cPickle
sage: %colors NoColor
%colors NoColor
sage: Integer(2)+Integer(2)
Integer(2)+Integer(2)
4
sage: x=Integer(2)
x=Integer(2)
sage: print x
print x
2
sage: x=Integer(2)
x=Integer(2)
sage: print x
print x
2
sage: x=Integer(2)
x=Integer(2)
sage: print x
print x
2
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?

Best,
                                Nicolas
--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to