On Sun, 14 Oct 2012 16:21:38 +0100 Alan Gauld 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
On 16/10/12 08:53, Osemeka Osuagwu wrote:
# or make this a regular instance method
class Grid:
def extend_grid(self, thickness=4, force=False):
# do stuff to self to extend it
# no need to return anything
Just to clarify, if I went with the top level function; then I
On Tue, Oct 16, 2012 at 3:53 AM, Osemeka Osuagwu abasiem...@gmail.com wrote:
On Sun, 14 Oct 2012 16:21:38 +0100 Alan Gauld wrote:
Just to clarify, if I went with the top level function; then I guess
I'll define a 'name' attribute for each individual grid and then pass
that name in place of