[IronPython] sys._getframe(0).f_lineno always returns 1

yngipy hernan yngipy at gmail.com
Sun Jul 11 07:24:52 CEST 2010


Thanks for confirming this Dino. I have opened a bug report, see 28052.

Regards,
Yngipy

On Fri, Jul 9, 2010 at 12:04 PM, Dino Viehland <dinov at microsoft.com> wrote:

>  This is definitely a bug.  If you’d open a bug on CodePlex that’d be
> great.  Currently we only track the line information locally but in
> –X:Frames mode we should hoist that information into the frame.
>
>
>
> *From:* users-bounces at lists.ironpython.com [mailto:
> users-bounces at lists.ironpython.com] *On Behalf Of *yngipy hernan
> *Sent:* Thursday, July 08, 2010 8:24 PM
> *To:* Discussion of IronPython
> *Subject:* Re: [IronPython] sys._getframe(0).f_lineno always returns 1
>
>
>
> Bump.....
>
>
>
> Anyone can confirm this issue? Or am I doing it incorrectly?
>
>
>
> Yngipy
>
>
>
> On Thu, Jul 8, 2010 at 1:15 AM, yngipy hernan <yngipy at gmail.com> wrote:
>
> Hi all,
>
>
>
> I have observed something that may be an issue, see snippet below
>
>
>
> import sys
>
>
>
> #filename is temp.py
>
> print 'hello world'
>
> print 'hello world'
>
> print 'Line : %s'%sys._getframe(0).f_lineno
>
>
>
> Here is my command line:
>
>
>
> ipy.exe -X:FullFrames temp.py
>
>
>
> The command "sys._getframe(0).f_lineno" always returns 1.
>
>
>
> Below my IPY version:
>
> IronPython 2.6.1 (2.6.10920.0) on .NET 4.0.30319.1
>
>
>
> Note that CPython 2.6.5 reports "6"
>
>
>
> Regards,
>
> Yngipy
>
> IPRobot (http://pyas.svn.sourceforge.net/viewvc/pyas/trunk/src/ipr/)
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20100711/3750094f/attachment.html>


More information about the Ironpython-users mailing list