Skip to content

Weirdness in hosted IronPython3 #1881

Closed Answered by mickp
mickp asked this question in Q&A
Jan 24, 2025 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

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 the eval is used to index the last-stored command, which contains the eval. 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!

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@mickp
Comment options

@BCSharp
Comment options

BCSharp Jan 28, 2025
Collaborator

@mickp
Comment options

Comment options

You must be logged in to vote
3 replies
@mickp
Comment options

@Muny
Comment options

@mickp
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by slozier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants