I am learning the ropes in Python. When I try to print an object of class Foobar using the print() function, I ge
Foobar
print()
If you're in a situation like @Keith you could try:
print(a.__dict__)
It goes against what I would consider good style but if you're just trying to debug then it should do what you want.