howto overload with a NOP (empty statement)
Robert Kern
robert.kern at gmail.com
Sat Jan 6 05:36:27 EST 2007
More information about the Python-list mailing list
Sat Jan 6 05:36:27 EST 2007
- Previous message (by thread): howto overload with a NOP (empty statement)
- Next message (by thread): howto overload with a NOP (empty statement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 not allowed to overload a method with an empty > statement. > I could write a nonsense dummy statement, like "A= 3", but isn't there > another way ? pass -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
- Previous message (by thread): howto overload with a NOP (empty statement)
- Next message (by thread): howto overload with a NOP (empty statement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list