Getting AttributeError after invoking class function in Python
<p>Very simple class(source below) written in Python.</p>

<p>After constructing <code>obj1 = myClass(12)</code> and calling class function obj1.printInfo(), I am getting an error - <code>AttributeError: type object 'myClass' has no attribute 'arg1'</code> What might be the source of the problem ?? </p>

<pre><code>class myClass(object):

    def __init__(self, arg1, arg2 = 0):
        self.arg1 = arg1
        self.arg2 = arg2

    def printInfo (self):
        print myClass.arg1, myClass.arg2


obj1 = myClass(12)
obj1.printInfo()
</code></pre>

<p>Thanks !</p>
