I broke the python interpreter today

05 September 2009

locals() can let you add non-strings to your local namespace, check it out... >>> locals().update({3:2}) >>> dir() Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: int() < str()