instance puzzle

PyUser no_spam at msn-1.com
Sat Oct 11 12:55:56 EDT 2003


> I think too much in java, so I always get into trouble trying to write
object oriented python programs :)

Just add a bit of self-ishness! Or how about 'this':

class MyClass:
    def __init__(this, i):
        this.num = 0
        this.lst = []

> -- Dominik
Sarat






More information about the Python-list mailing list