Re: howto overload with a NOP (empty statement)

2007-01-06 Thread Jussi Salmela
Bruno Desthuilliers kirjoitti: > Stef Mientki a écrit : >> How should I overload / disable a method ? >> In the example below I have defined the class "Power_Supply", derived >> from baseclass "device". > > > Naming conventions are to use CamelCase for class names. So it would be > better to na

Re: howto overload with a NOP (empty statement)

2007-01-06 Thread robert
Stef Mientki wrote: > How should I overload / disable a method ? > In the example below I have defined the class "Power_Supply", derived > from baseclass "device". > The baseclass has a method "execute", which will be implemented in most > derived classes, but not in all. > Now apparently it's no

Re: howto overload with a NOP (empty statement)

2007-01-06 Thread Bruno Desthuilliers
Stef Mientki a écrit : > How should I overload / disable a method ? > In the example below I have defined the class "Power_Supply", derived > from baseclass "device". Naming conventions are to use CamelCase for class names. So it would be better to name your classes 'PowerSupply' (no '_') and '

Re: howto overload with a NOP (empty statement)

2007-01-06 Thread Vasily Sulatskov
class Power_Supply (device): def execute (self): pass Stef Mientki wrote: > How should I overload / disable a method ? > In the example below I have defined the class "Power_Supply", derived > from baseclass "device". > The baseclass has a method "execute", which will be implemented in

Re: howto overload with a NOP (empty statement)

2007-01-06 Thread Robert Kern
Stef Mientki wrote: > How should I overload / disable a method ? > In the example below I have defined the class "Power_Supply", derived > from baseclass "device". > The baseclass has a method "execute", which will be implemented in most > derived classes, but not in all. > Now apparently it's no

howto overload with a NOP (empty statement)

2007-01-06 Thread Stef Mientki
How should I overload / disable a method ? In the example below I have defined the class "Power_Supply", derived from baseclass "device". The baseclass has a method "execute", which will be implemented in most derived classes, but not in all. Now apparently it's not allowed to overload a method w