when a function embedded in class be the "method" of the class?
<p>When this is executed...</p>

<pre><code>class A:
    def b(self, a):
        print a
    print dir(b)
print dir(A.b)
</code></pre>

<p>It gives the result:</p>

<pre><code>['__call__', '__class__', '__delattr__', '__dict__', '__doc__', '__get__',
 '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__',
 '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'func_closure',
 'func_code', 'func_defaults', 'func_dict', 'func_doc', 'func_globals', 'func_name']

['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__get__',
 '__getattribute__', '__hash__', '__init__', '__new__', '__reduce__', '__reduce_ex__',
 '__repr__', '__setattr__', '__str__', 'im_class', 'im_func', 'im_self']
</code></pre>

<p>why this differs?</p>
