I have a very strange thing happening where two lists which are clearly equal are not being considered equal by Python. From here you can see the IPython console output of an element of a dictionary I am working with:
In [251]: saveDict['data']['hpSH']['manifold_type']
Out[251]: ['duct', 'pipe']
Then when I go to check if this same dictionary element is equal to the list ['duct', 'pipe'], it says it is not:
In [252]: ['duct', 'pipe'] is saveDict['data']['hpSH']['manifold_type']
Out[252]: False
However, using "==" instead of "is" results in a True output in the console.
I discovered this because it is messing up other parts of my code and not doing the same calculations with saveDict['data']['hpSH']['manifold_type'] as it is with ['duct', 'pipe']. To give you more backstory, saveDict is coming from a saved file made by cPickle. Here is more on the environment I am working with:
Windows 10, Python 2.7.12 :: Anaconda 4.1.1 (32-bit), Spyder 2 IDE