I'm working on a module-based robot interface, but I've hit a bit of a roadblock. I would like the user's script to be able to simply import modules and drive the robot. I want the users code to be executed once every few seconds, but I don't want the timing system to be part of the users code: the user should just define the robot's behavior which is executed in a cyclic manner. I would like to make the timing and repeating system a part of the module the user imports in their code, but that means that the module has to be able to access functions inside the calling program. Is there an easy way to do this? Or is there a completely different solution that I'm not seeing? (I would like to avoid something object-oriented, because that's a personal challenge for me for this project: to explore new ways of problem-solving) Thanks, Basu
-- Embedded Architectures, Systems programming and outrageous ideas -- http://bytebaker.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor