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
R interface: fix passing strings #2963
Comments
comment:1
Hi Mike! Just a quick idea:
This would transform any string into a '"string"', unless string starts and ends with '"' already, and any other input is untouched. In particular, my suggestion would not break existing code, since I don't know in what way png is usually called: Frequently and with many arguments? Then my suggestion might involve a performance problem. Also I don't know if the application of Regards, |
comment:2
Replying to @simon-king-jena:
Sorry, perhaps I misunderstood the role of png: It is just one example, isn't it? But actually you want that in all expect interfaces the transition from 'bla' to '"bla"' is done, right? Then still my suggestion would solve the problem, but I guess the above lambda function should be defined in expect.py on module level, so that there is no need to create the function over and over again. Then, one would go through all methods of all expect interfaces, and do changes to the arguments, if they might be strings. Wow, that would be much to do! And then I don't know how much performance regression would occur and if that price would be worth to pay for making the input more comfortable. Cheers, |
comment:3
See also #12948, as many many people have asked how to do this in R and we still don't really have a nice solution for this in general. |
One should be able to do
instead of
Component: interfaces
Issue created by migration from https://trac.sagemath.org/ticket/2963
The text was updated successfully, but these errors were encountered: