This should do it - the hosting APIs changed quite a bit between 2.0 and 2.7:
import clr
clr.AddReference('IronPython')
from IronPython.Runtime import PythonContext
import System
clr.GetCurrentRuntime().GetLanguage(PythonContext).FormatException(System.Exception())
There could be other variations
Hello, I was looking at adding a handler for otherwise-uncaught .Net
exceptions, and had found this page:
http://www.ironpython.info/index.php/Handling_Unhandled_Exceptions useful.
However, the code shown falls over where he's trying to get a nicely
formatted python exception here:
from IronPy
Hi ironpython,
Here's your Daily Digest of new issues for project "IronPython".
In today's digest:ISSUES
1. [Status update] Typo
2. [Status update] ArgumentException when using SetTrace
3. [Status update] Lib/config directory not present in zip distribution.
4. [Status update] Update ElementTree
Hi Bruce,
I have not done any WPF myself, but there are a lot of resources on the web:
- http://www.ironpython.info/index.php/WPF_Example
- google "ironpython wpf"
I can also recommend "IronPython in Action" book, it has a chapter on WPF.
As for "label1.contents", shouldn't it be "label1.C
Hi,
currently i am trying to get a mongo-db running in an asp.net
application written in ironpython. I am trying to use the
python-driver pymongo.
I have installed the modules in the site-packages folder and i am able
to use it in my python25- and also in my ironpython- commandline
interpreter. I