Re: [Tutor] feedback on simple python code

2017-03-02 Thread Ryan Smith
On 2/28/17, 3:32 AM, "Tutor on behalf of Peter Otten" wrote: >Ryan Smith wrote: > >> Hi all, >> >> New python student here. I have been using O¹reilly¹s "Python Beyond the >> Basics: Object Oriented Programming video series". In one of the >> assignments we are to write a simple inheritance hier

Re: [Tutor] feedback on simple python code

2017-02-28 Thread Peter Otten
Ryan Smith wrote: > Hi all, > > New python student here. I have been using O¹reilly¹s "Python Beyond the > Basics: Object Oriented Programming video series". In one of the > assignments we are to write a simple inheritance hierarchy of three > classes that write to text files. I have actually wri

Re: [Tutor] feedback on simple python code

2017-02-27 Thread Danny Yoo
Hi Ryan, Let's take a look... Overloading the "write" method to take in different types of arguments looks a bit suspicious. You have a superclass that defines a write method, and you have two subclasses that implement that method. However, your first implementation, LogFile.write, appears to

[Tutor] feedback on simple python code

2017-02-27 Thread Ryan Smith
Hi all, New python student here. I have been using O¹reilly¹s "Python Beyond the Basics: Object Oriented Programming video series". In one of the assignments we are to write a simple inheritance hierarchy of three classes that write to text files. I have actually written the code for the assignmen