This commit is contained in:
Vitor Santos Costa
2018-09-14 11:28:24 +01:00
parent a079139060
commit f8d0703983
12 changed files with 46 additions and 18 deletions

View File

@@ -90,7 +90,10 @@ else if (PyUnicode_Check(pVal)) {
rc = rc && PL_unify_atom_chars(t, s);
else
#endif
if (pyStringToString)
return MkStringTerm(s);
else
return MkAtomTerm(Yap_LookupAtom(s));
}
else if (PyByteArray_Check(pVal)) {
return MkStringTerm(PyByteArray_AsString(pVal));