I usually click on edit and I get back the original form of the text. I realize
that's not going to work for people who can't edit bugs but the good news is
the formatting is preserved, it just doesn't show up when you look at it as
HTML.
-Original Message-
From: [EMAIL PROTECTED]
Definitely a bug - it also repros on the desktop CLR. It repros with just:
from __future__ import with_statement
with file('hello.txt', 'w') as f:
raise Exception
so it looks like the exception code path is broken. The underlying problem is
that we end up trying to dynamically convert
Another way to do this is to create a ScriptSource which is of kind Statements:
ScriptRuntime sr = ScriptRuntime.Create();
ScriptEngine engine = sr.GetEngine(py);
ScriptSource source =
engine.CreateScriptSourceFromFile(test.py, Encoding.Default,
Are you getting a TargetInvocationException and trying to get the stack trace
of that? Or is it just some normal exception kind? I'll have to look into why
calling FormatException isn't doing the right thing - that info might help...
But anyway, it looks like the Silverlight exception
We just went live with Iron Python Embedded. We chose IronPython because it
was so simple and python is so well documented. Other solutions are pretty
precarious whereas iron python implementation was really easy.
Michael Stephens
Electrical Engineering Graduate Student
University of Wyoming
Sorry, My English is so poor. Maybe some word is worry or unclear.
Follow is my ideas:
I will provide some ability in my WinForm application to allow user to write
python script to implement his custom business logic easily and quickly. My
user is not developer, he has not any experience