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