Opened 11 years ago

Last modified 10 years ago

#10539 needs_work defect

sage0.py interface ouputs inconsistent strings.

Reported by: mderickx Owned by: was
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: interfaces Keywords:
Cc: robertwb Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by jdemeyer)

The sage0 interface doesn't always return exactly the same thing. At #10528 the apparent problem is solved by making the doctests less rigid. But the real problem is not fixed there. With the real problem being that the piece of code:

sage: sage0.clear('x')
sage: sage0.get('x')

returns

"...NameError: name 'x' is not defined" 

in some setups and

'...NameError: name \'x\' is not defined'

in other setups.

Change History (5)

comment:1 Changed 11 years ago by mderickx

  • Cc robertwb added

The mercurial branch changes sometimes cause of patchbot. It would be good to rule out that explaination. Could you help with that Robert?

mderickx@sage:/levi/scratch/robertwb/buildbot/sage-4.6$ ./sage
----------------------------------------------------------------------
| Sage Version 4.6, Release Date: 2010-10-30                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: 5048
sage: sage0.get('a')
"---------------------------------------------------------------------------\nNameError                                 Traceback (most recent call last)\n\n/levi/scratch/robertwb/buildbot/sage-4.6/data/extcode/sage/<ipython console> in <module>()\n\nNameError: name 'a' is not defined"
sage: 

comment:2 Changed 11 years ago by robertwb

I'm not sure I understand your question, but an unpatched sage 4.6 always fails for me.

comment:3 Changed 10 years ago by jdemeyer

  • Milestone changed from sage-4.8 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

What's the point of this ticket? It looks like it's just repeating #10528. So proposing to close this as duplicate.

comment:4 follow-up: Changed 10 years ago by mderickx

  • Status changed from needs_review to needs_work

No, it's not a duplicate. At 10528 the apparent problem is solved by making the doctests less rigid. But the real problem is not fixed there. With the real problem being that the piece of code:

sage: sage0.clear('x')
sage: sage0.get('x')

Returns:

"...NameError: name 'x' is not defined" 
}}} in some setups and
{{{
'...NameError: name \'x\' is not defined'
}}} in other setups.
}}}

comment:5 in reply to: ↑ 4 Changed 10 years ago by jdemeyer

  • Description modified (diff)
Note: See TracTickets for help on using tickets.