Re: [Hepserver-devel] Wierd code
Status: Alpha
Brought to you by:
abefettig
|
From: Abe F. <ab...@fe...> - 2003-06-06 12:50:03
|
On Fri, 2003-06-06 at 02:33, Wari Wahab wrote: > Was just looking at the source today to see what's happening with Hep, > then I saw this wierd code in hep.py itself. > > from heplib.agents import scanner > for agent in [scanner]: > pass > agent.start(data) > > I'm not sure why this is done this way instead of just doing > scanner.start(data). Any future plans for this? Sorry if you find this > to be a nitpick :) Yeah, in the future there will be more agents than scanner, that's why I did it that way. also the 'pass' line is in there to make it easy to comment out the agent.start line, if I want to test Hep without any agents running. Also, I've been thinking about getting rid of the distinction between agents and servers. I'll probably do so soon. Abe |