Sandy
Sandy
MModular
Created by Sandy on 2/16/2024 in #questions
String to StringLiteral
Ah Maxim. Thank you 🙂 I had tried to do all sorts of callisthenics to get around this but to no avail. It started out because I've got a PythonObject (a return type from the database query) which is actually a string (or rather I want to deal with it as such). From this PythonObject which is a string I wanted to make another query to the database and I can only get it to work if it is a StringLiteral. The only way I could see how to convert a PythonObject to anything like a string was with str(PythonObject) but of course that gives me a String not a StringLiteral, so I feel like I've been chasing my tail a bit with this one. I might be overlooking something very obvious here... Thank you for reaching out and trying to help :).
5 replies