Q:

'object' in <__main__.Foo object at 0x10f43b7b8>

Suppose a class:
class Foo(object): pass

Make an instance:
foo = Foo()

Test them in interactive mode:
In [80]: print(Foo)
<class '__main__.Foo'>

Good hint, class 'Foo' in first_class module __main__, However:
In [81]: print(foo)
<__main__.Foo object at 0x10f43b0b8>

The word 'object' confuses me, why does python use object here instead of instance?

A:

This is a difference between new-style and old-style class:
class Old():
    pass

class New(object):
    pass

print `Old()`
print `New()`

with python2.7, yields:
<__main__.Old instance at 0x10bc23dd0>
<__main__.New object at 0x10bc27590>

Initially, repr() on "instance" of both of old and new style class yield <X instance at ...>, see this commit, but later new style class instance repr() changed to the current form.

