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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huzaifa Sent: Saturday, August 23, 2008 8:31 PM To: [email protected] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huzaifa Sent: Saturday, August 23, 2008 4:56 PM To: [email protected] 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 [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com _______________________________________________ Users mailing list [email protected] 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.
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
