Re: removing characters before writing to file

2006-02-09 Thread Stefan Neumann
[EMAIL PROTECTED] wrote: > hi > i have some output that returns a lines of tuples eg > > ('sometext1', 1421248118, 1, 'P ') > ('sometext2', 1421248338, 2, 'S ') > and so on > > If the braces are always at the begining and at the end of the string, you could also use: >>> "('sometext1

Daemon terminates unexpected

2006-02-06 Thread Stefan Neumann
I have written a daemon which should run endlessly. The structure looks like this: - start-stop-daemon forks my python program then: if __name__=="__main__": try: main() except Exception,e def main(): # I need a starter to use the program also from the unittests

Re: While loop - print several times but on 1 line.

2006-01-26 Thread Stefan Neumann
Danny wrote: > How could I make this print: texttexttexttexttext? > Ive researched and looked through google and so far I can't find > anything that will help (or revelent for that matter). I am not quite sure, if I simplify the problem but i thought about something like that: >>> prin