Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve "unable to convert string" error message #18110

Closed
jdemeyer opened this issue Apr 2, 2015 · 12 comments
Closed

Improve "unable to convert string" error message #18110

jdemeyer opened this issue Apr 2, 2015 · 12 comments

Comments

@jdemeyer
Copy link
Contributor

jdemeyer commented Apr 2, 2015

Component: user interface

Keywords: sd66

Author: Jeroen Demeyer

Branch/Commit: 1a1976c

Reviewer: Karl-Dieter Crisman

Issue created by migration from https://trac.sagemath.org/ticket/18110

@jdemeyer jdemeyer added this to the sage-6.6 milestone Apr 2, 2015
@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 2, 2015

@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 2, 2015

Commit: abc5a70

@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 2, 2015

New commits:

abc5a70Improve "unable to convert string" error message

@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 2, 2015

Changed keywords from none to sd66

@kcrisman
Copy link
Member

kcrisman commented Apr 2, 2015

comment:3

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. ? Otherwise looks good.

@kcrisman
Copy link
Member

kcrisman commented Apr 2, 2015

comment:4

Otherwise all looks good and passes all tests in sage/rings.

@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 3, 2015

Reviewer: Karl-Dieter Crisman

@jdemeyer
Copy link
Contributor Author

jdemeyer commented Apr 3, 2015

comment:5

Replying to @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:...

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 3, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

1a1976cImport sage_eval

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 3, 2015

Changed commit from abc5a70 to 1a1976c

@kcrisman
Copy link
Member

kcrisman commented Apr 3, 2015

comment:8

Good catch.

Otherwise all is well.

Interestingly, that error was caught by the except NameError:...

LOL

@vbraun
Copy link
Member

vbraun commented Apr 14, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants