<div dir="ltr">You can get those information via SyntaxErrorException<br><br><div class="gmail_quote">On Thu, Jul 31, 2008 at 9:58 AM, Huzaifa <span dir="ltr">&lt;<a href="mailto:huzi_1982@hotmail.com">huzi_1982@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Ops.ExtractException (ex, _pythonengine.Sys);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;TraceBack tb = _pythonengine.Sys.exc_traceback as TraceBack;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;if (tb != null) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.Data[&quot;LineNumber&quot;] = tb.Line;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//How to get Column?<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.Data[&quot;Offset&quot;] = tb.Offset; //doesn&#39;t work?<br>
<br>
<br>
I am not able to convert this code into Ironpython 2<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/how-to-convert-this-code-in-py-2.0-tp18748830p18748830.html" target="_blank">http://www.nabble.com/how-to-convert-this-code-in-py-2.0-tp18748830p18748830.html</a><br>

Sent from the IronPython mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br><a href="http://nomadlife.org">nomadlife.org</a><br><br>
</div>