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
or
[...]
def method(self):
assert not must be overrided
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
, 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