I'm debugging a script and want to check the type of an object. So in the script I write: print type([object] This bombs, and I get "TypeError: 'str' object is not callable' I've also tried x = type([object]) print x Same thing. In the interactive, 'type([object])' works fine. What am I missing here?