IDLE vs. the command line?

O

Otto T Hyvarinen

We have this big Python program, developed by another institute, that
uses C extensions a lot. One of those C methods does the segmentation
fault when run from the command line, but _not_ when run from the IDLE.
This is quite strange.

What is different when a program is run in IDLE? Or is there no
difference and our case is just a fluke? Or should I update my Python
knowledge (and how)? If we can tell something about this in our bug
report, the developers would probably be grateful.

We are using Mandrake 9.2 and Python 2.3. The program is developed in
Python 2.2.*.

Regards,

Otto Hyvärinen
 
R

Rene Pijlman

Otto T Hyvarinen:
We have this big Python program, developed by another institute, that
uses C extensions a lot. One of those C methods does the segmentation
fault when run from the command line, but _not_ when run from the IDLE.
This is quite strange.

Shit happens. When a program is correct, it will work. But when a program
is incorrect, there is no guarantee that it will fail.
What is different when a program is run in IDLE? Or is there no
difference and our case is just a fluke? Or should I update my Python
knowledge (and how)?

You should probably debug the C extensions.
 
I

Istvan Albert

Otto said:
uses C extensions a lot. One of those C methods does the segmentation
fault when run from the command line, but _not_ when run from the IDLE.
This is quite strange.

The various ways in which memory corruption manifests itself in
C programs sometime appear to be governed by mysterious
powers, a higher authority or simply IDLE.

Istvan.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top