470,855 Members | 1,158 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

Maximum recursion depth

When I run on Webware(Python application Server),
there is a web Page that has a "Cancel" button , When
I press the Cancel button , I get the following error
based on the following code snippet

def Cancel(self):
"""
Cancel the current page
"""
log.debug("cancel()")
self.forward("Display")
Traceback (most recent call last):
File "WebKit\Application.py", line 415, in
dispatchRequest
File "WebKit\Application.py", line 567, in
handleGoodURL
File "WebKit\Application.py", line 776, in respond
File "WebKit\Transaction.py", line 105, in respond
File "WebKit\HTTPServlet.py", line 38, in respond
File "WebKit\Page.py", line 38, in respondToPost
File "WebKit\Page.py", line 70, in _respond
File "WebKit\Page.py", line 265, in handleAction
File "C:\agents\context\pageedit\Display.py", line
140, in Cancel
self.forward("Display")
File "WebKit\Page.py", line 335, in forward
File "WebKit\Application.py", line 652, in forward
File "WebKit\Application.py", line 430, in
dispatchRequest
File "WebKit\Application.py", line 1076, in
handleExceptionInTransaction
File "WebKit\ExceptionHandler.py", line 104, in
__init__
File "WebKit\ExceptionHandler.py", line 136, in
work
File "WebKit\ExceptionHandler.py", line 168, in
logExceptionToConsole
File "D:\Python23\lib\traceback.py", line 210, in
print_exc
print_exception(etype, value, tb, limit, file)
File "D:\Python23\lib\traceback.py", line 123, in
print_exception
print_tb(tb, limit, file)
File "D:\Python23\lib\traceback.py", line 68, in
print_tb
line = linecache.getline(filename, lineno)
File "D:\Python23\lib\linecache.py", line 14, in
getline
lines = getlines(filename)
File "D:\Python23\lib\linecache.py", line 40, in
getlines
return updatecache(filename)
RuntimeError: maximum recursion depth exceeded
This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Jul 18 '05 #1
2 2495
Sujit Marar wrote:

This eems not a problem with Webware, but with
Python2.3 KIt
Can anyone tell me


import sys
print sys.getrecursionlimit()

will tell you this limit. On my system is 1000.
You can set it with:

sys.setrecursionlimit(new_limit)

But you need to wonder why you Webware exceeded it
in the first place...

Istvan

Jul 18 '05 #2
On Mon, Jul 12, 2004 at 04:37:25PM -0400, Istvan Albert wrote:
But you need to wonder why you Webware exceeded it
in the first place...


If the OP included the full traceback, one has to wonder why webware
made the recursion depth so small -- there are only a few dozen frames
there.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFA9SxFJd01MZaTXX0RAoy4AJ4xF5A0bHGoOIhuud+k+j eeBkKkmQCdFC22
RPBVMUtCfGnuhqYwf5Hdts4=
=VazD
-----END PGP SIGNATURE-----

Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Simon Burton | last post: by
6 posts views Thread by Georgy Pruss | last post: by
5 posts views Thread by yogee | last post: by
10 posts views Thread by MakeMineScotch | last post: by
13 posts views Thread by robert | last post: by
reply views Thread by cwig | last post: by
29 posts views Thread by lovecreatesbea... | last post: by
6 posts views Thread by globalrev | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.