Nov
16th
Fri
16th
TypeError: string indices must be integers
I’m writing a program in python, using the formencode module from www.formencode.org
It’s great for validating form input for webpages. Python has many other extremely useful modules written for it that do a lot the work. But python is dynamically typed and this is a problem.
Strong dynamic typing leads to fun errors like this:
TypeError: string indices must be integers that bubble up from somewhere in the depths of some module on line 2357. It’s unlikely to be an error in the module itself,…