This can be a bit of an obscure error, if you run into it… It looks like this: File “…/CCRM/Content.py”, line 202, in Page_Update (‘Nav1′ , Data.Nav1), TypeError: ‘tuple’ object is not callable In reality, it’s typically caused by accidentally forgetting a comma from the line before: Notice that line 9 is missing a comma [...]
Posts Tagged ‘Tuple’
Python: ‘tuple’ object is not callable
Posted in Engineering, Perspective, Technique, tagged bugs, callable, errors, hard to find bugs, programming, Python, Tuple on September 25, 2010 | Leave a Comment »
What is a tuple?
Posted in Engineering, Interesting, Technique, tagged Python, Tuple on September 3, 2009 | Leave a Comment »
I get asked this from time to time, so for the fun of it, I’ll post this: Tuples are immutable lists in python (and other languages). Very lightweight, unchangable arrays. They are used for storing multiple values in one variable (usually a fixed number of values). x = (1, 2, 3, ‘abc’) x[0] -> 1 [...]