Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread alan . gauld
>>Yup, I was thinking more in terms of the Java idea, whereby an >>interface is declared specifically and then a class claiming >>to implement it causes compilation problems if it doesn't >>properly implement it. I guessed as much but that is an idea dreamt up by Microsoft for COM and picked up

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Alex Hunsley
Kent Johnson wrote: >Alex Hunsley wrote: > > >>Oh yes, I'd always reply to the list in the very least; I was really >>just wondering what the etiquette was concerning emails also going back >>to the person you're reply to directly (as well as to the list). I ask >>because the list is set up s

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Kent Johnson
Alex Hunsley wrote: > Oh yes, I'd always reply to the list in the very least; I was really > just wondering what the etiquette was concerning emails also going back > to the person you're reply to directly (as well as to the list). I ask > because the list is set up so that it appears replies ar

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Alex Hunsley
Kent Johnson wrote: >Alex Hunsley wrote: > > >>Alan Gauld wrote: >> >> >> >> Interfaces and abstract classes - I know they don't exist per se in Python. >>>First you need to define what you mean by the terms. >>>Every class has an interface - it is the set of mess

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Kent Johnson
Alex Hunsley wrote: > Alan Gauld wrote: > > >>>Interfaces and abstract classes - I know they don't exist per se in >>>Python. >> >> >>First you need to define what you mean by the terms. >>Every class has an interface - it is the set of messages to which it >>responds. > > > Yup, I was think

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Alex Hunsley
Kent Johnson wrote: >Alex Hunsley wrote: > > >>Interfaces and abstract classes - I know they don't exist per se in >>Python. But what are the closest analogues? I've found a few examples, >>e.g. for an abstract class the following page has a fairly common >>suggestion: >> >>http://www.norvig.

Re: [Tutor] interfaces and abstract classes in python

2005-11-08 Thread Alex Hunsley
Alan Gauld wrote: >> Interfaces and abstract classes - I know they don't exist per se in >> Python. > > > First you need to define what you mean by the terms. > Every class has an interface - it is the set of messages to which it > responds. Yup, I was thinking more in terms of the Java idea,

Re: [Tutor] interfaces and abstract classes in python

2005-11-06 Thread Kent Johnson
Alex Hunsley wrote: > Interfaces and abstract classes - I know they don't exist per se in > Python. But what are the closest analogues? I've found a few examples, > e.g. for an abstract class the following page has a fairly common > suggestion: > > http://www.norvig.com/python-iaq.html Interfa

Re: [Tutor] interfaces and abstract classes in python

2005-11-06 Thread Alan Gauld
> Interfaces and abstract classes - I know they don't exist per se in > Python. First you need to define what you mean by the terms. Every class has an interface - it is the set of messages to which it responds. An Abstract class is one which is not intended to be instantiated. class Abstract

[Tutor] interfaces and abstract classes in python

2005-11-06 Thread Alex Hunsley
Interfaces and abstract classes - I know they don't exist per se in Python. But what are the closest analogues? I've found a few examples, e.g. for an abstract class the following page has a fairly common suggestion: http://www.norvig.com/python-iaq.html thanks! alex _