[IronPython] CodeContext

Tomas Matousek Tomas.Matousek at microsoft.com
Mon Aug 25 20:02:50 CEST 2008


I see. We probably should have a method on ExceptionOperations that returns a list of stack frame information given an exception.
There is also a private method on PythonOps that creates the traceback object and doesn't require CodeContext: CreateTraceBack. We might consider making it public. Curt?
Meanwhile, you can use GetExceptionInfoLocal  with a default context from DefaultContext.Default. The only place where the context is used is to do some magic with StringException, but that doesn't influence the traceback object.

Tomas

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa
Sent: Saturday, August 23, 2008 8:31 PM
To: users at lists.ironpython.com
Subject: Re: [IronPython] CodeContext

I am try to get traceback object , for that i am trying different things
Tomas Matousek wrote:
The class might be actually be called ExceptionService in your bits. It was renamed recently. Tomas -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Tomas Matousek Sent: Saturday, August 23, 2008 7:53 PM To: Discussion of IronPython Subject: Re: [IronPython] CodeContext Does ExceptionOeprations class provide you the information you need or is something missing? You can get an instance via engine.GetService(). Tomas -----Original Message----- From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Huzaifa Sent: Saturday, August 23, 2008 4:56 PM To: users at lists.ironpython.com Subject: [IronPython] CodeContext how to get CodeContext from ScriptRuntime ,ScriptScope or ScriptEngine . basically i am try use this function: public static PythonTuple/*!*/ GetExceptionInfoLocal(CodeContext/*!*/ context, Exception ex) -- View this message in context: http://www.nabble.com/CodeContext-tp19126500p19126500.html Sent from the IronPython mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list Users at lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

________________________________
View this message in context: Re: CodeContext<http://www.nabble.com/CodeContext-tp19126500p19127475.html>
Sent from the IronPython mailing list archive<http://www.nabble.com/IronPython-f14449.html> at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080825/272e826f/attachment.html>


More information about the Ironpython-users mailing list