Re: [Tutor] Type() Getting Type Error

2007-11-09 Thread Chernev Chernev
On Nov 9, 2007 10:09 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > > So in the script I write: > > print type([object] > > > > This bombs, and I get > > "TypeError: 'str' object is not callable' > > > Probably you have a variable named 'type' in your script that is hiding > the builtin 'type' objec

[Tutor] Type() Getting Type Error

2007-11-09 Thread Chernev Chernev
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 missi