How to use Py_DEBUG ?

2008-11-26 Thread MCG
Hello, Does somebody know how to debug this kind of bug ? (see following traceback) I suppose that the bug is in my program (executable with python embedded) and not in python... but how to locate it ? I tried to compile all C sources calling Python.h with -DPy_DEBUG and to link my code against co

String Fomat Conversion

2005-01-26 Thread mcg
Investigating python day 1: Data in file: x y 1 2 3 4 5 6 Want to read file into an array of pairs. in c: scanf("%d %d",&x,&y)---store x y in array, loop. How do I do this in python?? In the actual application, the pairs are floating pt i.e. -1.003 -- http://mail.python.org/mailman/l