[Tutor] Is there a way to store and later use comparison operators (<, <=, =, >=, >) ?

boB Stepp robertvstepp at gmail.com
Wed Apr 29 23:16:01 CEST 2015


On Wed, Apr 29, 2015 at 3:50 PM, Laura Creighton <lac at openend.se> wrote:
> I forget.  You are writing these things as functions rather than
> methods of a class, because you don't know how to use classes yet?

You forget nothing! ~(:>))

> Because you are absolutely correct that there are ways to simplify this,
> but if you don't know how to use classes yet, put this on hold until
> you do.  And this particular thing you want to do is not the optimal
> place to start learning about how to use classes.

Since the unittest module creating test classes, I have commenced
formal studying of this topic. But as you point out, not ready for it
yet!


-- 
boB


More information about the Tutor mailing list