#18110: Improve "unable to convert string" error message
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.6
Component: user interface | Resolution:
Keywords: sd66 | Merged in:
Authors: Jeroen Demeyer | Reviewers: Karl-Dieter Crisman
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/improve__unable_to_convert_string__error_message|
abc5a70de3fd3007fc603fdf378164c4e31a3967
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
* reviewer: => Karl-Dieter Crisman
Comment:
Replying to [comment:3 kcrisman]:
> Only one question:
> {{{
> + if isinstance(x, basestring):
> + from sage.misc.sage_eval import sage_eval
> }}}
> but there is no corresponding import for `y`, so in theory there could
be some situation where `x` wasn't a basestring (whatever that is) but `y`
was. ?
Good catch. Interestingly, that error was caught by the `except
NameError:`...
--
Ticket URL: <http://trac.sagemath.org/ticket/18110#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.