Re: [Tutor] instance method call issue

2012-10-21 Thread Steven D'Aprano
Digging up a week-old email from Bob: On 15/10/12 08:37, bob gailer wrote: On 10/14/2012 8:34 AM, Osemeka Osuagwu wrote: except: print 'Cannot display Grid' In addition to Steve's comment I add my own gripe: When delivering an error message tell us WHY. I have seen too many messages cannot

[Tutor] instance method call issue

2012-10-14 Thread Osemeka Osuagwu
Hello people, Firstly, thank you so much for all the assistance you provide so selflessly through this medium. I come from a functional programming background and have only recently become serious with OOP. For practice, I tried to implement John Conways 'Game of Life' without a GUI and ran into

Re: [Tutor] instance method call issue

2012-10-14 Thread Steven D'Aprano
On 14/10/12 23:34, Osemeka Osuagwu wrote: In the code below, I can't seem to get around calling an instance method (__reality_check()) from within a class method (update_grid()), Of course you can't :) Since the class method has no access to the instance, it cannot call instance methods,

Re: [Tutor] instance method call issue

2012-10-14 Thread Alan Gauld
On 14/10/12 13:34, Osemeka Osuagwu wrote: I understand instance, static and class methods but I'm still struggling with when and where they should be used. You can pretty much ignore static methods, they were almost an historic 'accident' superseded, in most cases, by class methods. The

Re: [Tutor] instance method call issue

2012-10-14 Thread bob gailer
On 10/14/2012 8:34 AM, Osemeka Osuagwu wrote: except: print 'Cannot display Grid' In addition to Steve's comment I add my own gripe: When delivering an error message tell us WHY. I have seen too many messages cannot do xxx with no information that