What version of IPython are you using? With 0.8.3 and the trunk, I do not see this behavior. Can you show us the code that displays the behavior you see?
In [1]: !cat foo.py
IPython system call: cat foo.py
class foo(object):
def __getattr__(self, attr):
print 'Getting %r' % attr
What version of IPython are you using? With 0.8.3 and the trunk, I do not see this behavior. Can you show us the code that displays the behavior you see?
In [1]: !cat foo.py
IPython system call: cat foo.py
class foo(object):
def __getattr__(self, attr):
print 'Getting %r' % attr
def myfunc(self):
print 'myfunc()'
In [2]: import foo
In [3]: f = foo.foo()
In [4]: f.myfunc()
myfunc()
In [5]: f.myfunc ()
myfunc()
In [6]: f.myfunc( )
myfunc()
In [7]: x = f.myfunc()
myfunc()
In [8]: f.something
Getting 'something'