Re: inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-25 Thread Terry Reedy
On 9/25/2010 3:53 AM, deluxstar wrote: The traceback is: 2010-09-25 10:50:38+0300 [-] Traceback (most recent call last): 2010-09-25 10:50:38+0300 [-] File "../appsrv/lqcommon.py", line 983, in getPRMS 2010-09-25 10:50:38+0300 [-] File "/usr/lib/python2.6/inspect.py", line 931, in getouterfra

Re: inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-25 Thread Wolfgang Rohdewald
On Samstag 25 September 2010, Steven D'Aprano wrote: > My guess is that you've copied the .pyc file onto the server, > BUT there is also an older version of the .py file there as > well. Because the modification date is older than that of the > .pyc file, Python executes the compiled code from the

Re: inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-25 Thread Steven D'Aprano
On Sat, 25 Sep 2010 00:53:13 -0700, deluxstar wrote: > The traceback is: > 2010-09-25 10:50:38+0300 [-] Traceback (most recent call last): > 2010-09-25 10:50:38+0300 [-] File "../appsrv/lqcommon.py", line 983, > in getPRMS > 2010-09-25 10:50:38+0300 [-] File "/usr/lib/python2.6/inspect.py", >

Re: inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-25 Thread deluxstar
On 24 Eylül, 12:39, Peter Otten <__pete...@web.de> wrote: > deluxstar wrote: > > We have an application working on several servers generally written > > with Python 2.6 and Twisted 10. > > The source codes are located in one server and compiled in this > > server. The compiled files are copied to o

Re: inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-24 Thread Peter Otten
deluxstar wrote: > We have an application working on several servers generally written > with Python 2.6 and Twisted 10. > The source codes are located in one server and compiled in this > server. The compiled files are copied to other server via network and > application server works with these c

inspect.stack() or inspect.currentframe() gives "list index out of range error"

2010-09-24 Thread deluxstar
Hi, We have an application working on several servers generally written with Python 2.6 and Twisted 10. The source codes are located in one server and compiled in this server. The compiled files are copied to other server via network and application server works with these compiled files. In this