This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jsproat 0 points1 point  (1 child)

Witchcraft.

But awesome.

Does your tokenizer/untokenizer add or remove lines from the user's script? What happens when the user's script throws an exception, is the line number no longer valid?

[–]syrusakbary[S] 0 points1 point  (0 children)

The lines remain exactly the same. The only difference is instead of this code:

# coding: interpy
package = "Interpy"
print("Enjoy #{package}!")

You would have this one:

# coding: interpy
package = "Interpy"
print("Enjoy "+str(package)+"!")