Re: Abstract Methods Abstract Class

2005-10-21 Thread Terry Hancock
On Thursday 20 October 2005 03:32 am, Gerald Klix wrote: class AbstractBase: def method(self): raise NotImplementedError( abstract method called ) You should also consider using an interface instead of an abstract class -- they can serve much the same purpose. (Search for

Re: Abstract Methods Abstract Class

2005-10-20 Thread sébastien
or [...] def method(self): assert not must be overrided -- http://mail.python.org/mailman/listinfo/python-list

Abstract Methods Abstract Class

2005-10-20 Thread Iyer, Prasad C
Do we have something like abstract methods Abstract class. So that my class would just define the method. And the implementation would be defined by somebody else. This message contains information that may be privileged or confidential and is the property of the Capgemini Group

Re: Abstract Methods Abstract Class

2005-10-20 Thread Andreas Kostyrka
On Thu, Oct 20, 2005 at 12:05:05PM +0530, Iyer, Prasad C wrote: Do we have something like abstract methods Abstract class. So that my class would just define the method. And the implementation would be defined by somebody else. class AbstractBase: def method(self): raise

Re: Abstract Methods Abstract Class

2005-10-20 Thread Fredrik Lundh
Andreas Kostyrka wrote: Do we have something like abstract methods Abstract class. So that my class would just define the method. And the implementation would be defined by somebody else. class AbstractBase: def method(self): raise TypeError(abstract method called

Re: Abstract Methods Abstract Class

2005-10-20 Thread Gerald Klix
, October 20, 2005 8:56 AM Subject: Re: Abstract Methods Abstract Class On Thu, Oct 20, 2005 at 12:05:05PM +0530, Iyer, Prasad C wrote: Do we have something like abstract methods Abstract class. So that my class would just define the method. And the implementation would be defined