Re: A daemon to call a function with configurable interval

2010-06-16 Thread Clovis Fabricio
2010/6/16 Vishal Rana : > I am working in a django web application. > A function 'xyx' need to be called every 2 minutes. > I want one http request should start the daemon and keep calling xyz (every > 2 minutes) until I send another http request to stop it. > Appreciate your ideas. Hello Vishal!

Re: file.close() does not really close under Windows?

2009-12-17 Thread Clovis Fabricio
Hello Dani, 2009/12/17 Dani : > Is it correct that low-level file handles are not being closed after > doing > fd = open(filepath) > fd.close() > If so, what is the rationale? No, it is incorrect. I tested that exact snippet here and it correctly closes the file. I can move the file around just

Re: Python debugger

2009-07-03 Thread Clovis Fabricio
2009/7/3 Kee Nethery : > It's not free but I like the debugger in Komodo IDE. > Lets me simulate a web connection, lets me step through the code and examine > the variables as it executes, can be run remotely (have not played with that > aspect yet). > Does variable inspection of the variables so y

Re: Python debugger

2009-07-03 Thread Clovis Fabricio
2009/7/3 srinivasan srinivas : > Could you suggest some python debuggers? Two graphical debugger frontends: http://www.gnu.org/software/emacs/ http://winpdb.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess.Popen - file like object from stdout=PIPE

2009-02-04 Thread Clovis Fabricio
2009/2/4 Helmut Jarausch : >> EQ.stdout is the filelike object you're looking for. >> communicate() grabs entire output at once so don't use it. > Thanks a lot, I haven't found that in the official documentation. > Helmut. That would be a documentation bug. Fortunately it is not true. Here is it i

Re: subprocess.Popen - file like object from stdout=PIPE

2009-02-04 Thread Clovis Fabricio
2009/2/4 Helmut Jarausch : > using e.g. > import subprocess > Package='app-arch/lzma-utils' > EQ=subprocess.Popen(['/usr/bin/equery','depends',Package],stdout=subprocess.PIPE) > EQ_output= EQ.communicate()[0] > EQ_output is a string containing multiple lines. > I'd prefer a file-like object, e.g. E

Re: csv.reader problem tab-delimiter - newbie

2008-10-21 Thread Clovis Fabricio
2008/10/21 <[EMAIL PROTECTED]>: > grrr thanks George, thanks Daniel, that's it. Works fine with real > tabs. Now this brings me to a follow-up: I have not prepared the input > ascii file, I just got if for post-processing (23 MB). Now it seems > that I would have to replace all series of spaces in