An example in the README:
py_run_simple_string('x = 10').
The predicate name says "string", yet 'x = 10' is an atom.
In addition, the README mentions that Python strings are converted to Prolog atoms.
Would it be good to convert Python strings to Prolog strings (lists of characters)? One advantage would be that strings can be very conveniently processed with DCGs.
An example in the README:
py_run_simple_string('x = 10').The predicate name says "string", yet
'x = 10'is an atom.In addition, the README mentions that Python strings are converted to Prolog atoms.
Would it be good to convert Python strings to Prolog strings (lists of characters)? One advantage would be that strings can be very conveniently processed with DCGs.