-
I've been looking at updating a project that uses hosted IronPython2, but I hit a problem in IronPython3 when trying to import It looks like the underlying issue is that my hosted interpreter is unable to
That same expression is fine in IronPython3 Console ... so what's the problem with my hosted interpreter? Some observations:
Here's the traceback from the
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Just a thought: have you checked that the UTF-8 encoding you use is configured to work without the preamble? A BOM character can throw things off, although I would expect in such case |
Beta Was this translation helpful? Give feedback.
-
Weird one indeed. How are you initializing your engine and streaming the data? Do you get the same issue if you try with 3.4.0 or 3.4.1? |
Beta Was this translation helpful? Give feedback.
-
I found it! The host app does some custom trace handling. When a line of code contains Thanks for the suggestions! |
Beta Was this translation helpful? Give feedback.
I found it! The host app does some custom trace handling. When a line of code contains
eval
, the line number from a frame inside theeval
is used to index the last-stored command, which contains theeval
. It looks like someone added a hack to work around this by splitting the source on\n
. I guess that works with ASCII encoding, but fails with Unicode because it sees\\n
.Thanks for the suggestions!