(newbie) class with a single instance ?!

2006-12-15 Thread Andrea Tomadin
Hi, I need a suggestion on the better implementation for a very basic task. I run a program which does some logging on files. I want to collect all the filenames and handlers in the same structure. All the files should be opened at startup, closed at exit, and easily accessed by the rest of

interpreter in the background

2007-07-28 Thread Andrea Tomadin
Hi, I need to use the Python interpreter as if it were a Matlab or Mathematica "kernel", i.e. running in the background while I use an interface program to send commands and get output. Ideally, I would pipe some text "to" the interpreter (through a fifo, a socket...?) and got all the outp