[Tutor] Type() Getting Type Error
chernevik at gmail.com
Fri Nov 9 16:17:05 CET 2007
On Nov 9, 2007 10:09 AM, Kent Johnson <kent37 at tds.net> 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' object.
Just so. I renamed that variable and the script ran fine.
Thank you, and thanks to everyone who looked at this.
More information about the Tutor