Classic OOP in Python

Skip Montanaro skip.montanaro at gmail.com
Wed Jun 17 15:38:12 EDT 2015


On Wed, Jun 17, 2015 at 2:21 PM, Jason P. <suscricions at gmail.com> wrote:
> I'm gonna try to develop a modest application from ground up using
> TDD. If it had been done in Java for instance, I would made
> extensive use of interfaces to define the boundaries of my
> system. How would I do something like that in Python?

Maybe start here:

http://stackoverflow.com/questions/2124190/how-do-i-implement-interfaces-in-python

and see if abstract base classes will be sufficient.  (I wouldn't
know. I've never used Java or PHP.)

More generally, you might try search the web for "interfaces in
python".  The above just seemed to be the most relevant response to
me.

Skip



More information about the Python-list mailing list