My interpreter is built using mostly unicode for symbols and strings, but
recently I've been getting some really weird translation errors. The first
is this: https://gist.github.com/halgari/0d57dd87434968561705
I tracked this error down to being caused whenever I try an isinstance of
unicode like this:
isinstance(x, unicode)
This is really annoying as I'd love to have a single unified wrap function:
@specialize.argtype(0)
def wrap(x):
if isinstance(x, int):
return numbers.Integer(x)
if isinstance(x, unicode):
return String(x)
And as of this morning I started getting errors like this:
[translation:ERROR] TyperError: don't know how to convert from
participants (2)
-
Armin Rigo
-
Timothy Baldridge