Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Changing class name causes process to 'hang'

Thread Tools

Changing class name causes process to 'hang'

Tim Johnson
Posts: n/a
I'm using Python 2.6.5 on ubuntu 10.04 32-bit.
My issue however, is with a code base that goes back to 2002,
which at that time was 1.5~ or so.

I have been since that time using my own cgi module which in turn,
uses the python standard `cgi' module.

The object instantiation has looked something like this:
## code below
cgi = cgilib.cgitools()
## /code

I choose to create a new cgi module by copying `cgilib' as `cgirev'
and renamed the `cgitools' to `Cgi' so that the instantiation
looked like
## code below
cgi = cgirev.Cgi()
## /code

And ran into problems, the cgi script would run almost to
completion, but acted like it lost track of the stack at some point
and would not terminate.

I deleted all .pyc files associated with any file that might be a
dependency. That did not solve the problem. After scratching my head
and swearing for a couple of hours, I changed the name of the `Cgi'
class back to `cgitools' and everything worked.

## code below
cgi = cgirev.Cgi()
## /code

1)This is a mystery to me that may likely hide other issues that may
come to bite me later.

2)I don't want to be stuck with the `cgitools' classname.

I have never used a debugger with python. Never had to, python's
error messages have always been my friend and mentor, but in this
case there are no error messages.

I would welcome hints on how to trouble-shoot this issue.
tim at or
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I find out the process ids with a process name herman Python 5 09-04-2007 11:05 PM
Changing file from User Process to System process Fu Schnickens Computer Support 3 12-30-2006 07:20 PM
Using DNS name verses Machine Name causes 403 error Jason ASP .Net Web Services 5 09-18-2006 07:49 AM
Nested Class, Member Class, Inner Class, Local Class, Anonymous Class E11 Java 1 10-12-2005 03:34 PM
Postback causes 100=Continue, causes double download prompt? Xavier Osa ASP .Net 0 01-09-2004 11:17 AM