Re: generate methods at runtime, but the wrong one gets called

2008-08-26 Thread Bruno Desthuilliers
Maric Michaud a écrit : (snip) i don't get your design, it seems over-complicated to mee at first glance. -- http://mail.python.org/mailman/listinfo/python-list

Re: generate methods at runtime, but the wrong one gets called

2008-08-25 Thread Marc 'BlackJack' Rintsch
On Mon, 25 Aug 2008 12:52:44 +0200, Maric Michaud wrote: > In other OOP language I would encourage you to implement this logic in > some sort of singleton, but in python we don't like this construct, > module level variables and function do perfectly the job, simple as > they are. Modules are som

Re: generate methods at runtime, but the wrong one gets called

2008-08-25 Thread Maric Michaud
Le Monday 25 August 2008 11:37:23 Steven Samuel Cole, vous avez écrit : > Hello, > > I am writing an application that controls robots. Different robots can > do different kinds of movements, such as e.g. open gripper, rotate > gripper, etc. My RobotControl class should support all kinds of > robots

generate methods at runtime, but the wrong one gets called

2008-08-25 Thread Steven Samuel Cole
Hello, I am writing an application that controls robots. Different robots can do different kinds of movements, such as e.g. open gripper, rotate gripper, etc. My RobotControl class should support all kinds of robots. I therefore delegate the actual control work to extra control-specific classes, o