[Tutor] How do I test file operations (Such as opening, reading, writing, etc.)?

boB Stepp robertvstepp at gmail.com
Thu Jan 28 23:58:44 EST 2016


On Thu, Jan 28, 2016 at 4:14 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
> On 28/01/16 20:03, Danny Yoo wrote:
>> (Aside: this is somewhat why I think the topic of inheritance and
>> inheritance
>> hierarchies are entirely the wrong things to focus on when we're
>> teaching OOP.
>
> Absolutely.
> I always try to focus on the objects passing, and responding to, *messages*
> as the key feature. Inheritance is a convenience, often abused to do code
> reuse. The thing to focus on is polymorphism which just happens to be
> implemented by inheritance heirarchies in most languages (although
> not in python!)

I'll ask you the same question that I asked Danny:  Do you have a
favorite text which teaches OOP the way you feel it should be taught?
And if possible, Python-based?

boB


More information about the Tutor mailing list