<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi all,<div><br></div><div>I have observed something that may be an issue, see snippet below</div><div><br>
</div><div><div>import sys</div><div><br></div><div>#filename is temp.py</div><div>print &#39;hello world&#39;</div><div>print &#39;hello world&#39;</div><div>print &#39;Line : %s&#39;%sys._getframe(0).f_lineno</div></div>
<div><br></div><div>Here is my command line:</div><div><br></div><div>ipy.exe -X:FullFrames temp.py</div><div><br></div><div>The command &quot;sys._getframe(0).f_lineno&quot; always returns 1.</div><div><br></div><div>Below my IPY version:</div>
<div>IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1</div><div><br></div><div>Note that CPython 2.6.5 reports &quot;6&quot;</div><div><br></div><div>Regards,</div><div>Yngipy</div><div>IPRobot (<a href="http://pyas.svn.sourceforge.net/viewvc/pyas/trunk/src/ipr/" target="_blank" style="color: rgb(42, 93, 176); ">http://pyas.svn.sourceforge.net/viewvc/pyas/trunk/src/ipr/</a>)</div>
<div><br></div></span>