Newbie Question: Abstract Class in Python

Kevin Bass kbass1 at nc.rr.com
Sun Jul 6 20:42:27 EDT 2003


"Aahz" <aahz at pythoncraft.com> wrote in message
news:beaed6$e71$1 at panix2.panix.com...
> In article <5U2Oa.239646$jp.6482027 at twister.southeast.rr.com>,
> Kevin Bass <kbass1 at nc.rr.com> wrote:
> >
> >I am new to Python and want to know how to implement an abstract
> >class? I have read through different books and I have no found this
> >information.  Thanks!
>
> Simple answer: you don't.  Python doesn't really have that concept.  If
> you tell us what you're trying to do, we can explain how to do that in
> Python.
> --
> Aahz (aahz at pythoncraft.com)           <*>
http://www.pythoncraft.com/
>
> "Not everything in life has a clue in front of it...."  --JMS

I am only looking for an answer about creating an abstract class in Python
and
not a solution to a problem.   I am looking for a way to stop class
instantiation
of a class. This should be a generic approach.

Kevin






More information about the Python-list mailing list