What does `{...}` mean in a python 2 dictionary value printed? : <p>While debugging a python program I had to print the value of a huge dictionary on a log file. I copy-pasted the value and when I assigned it in the python 2 interpreter I got <code>SyntaxError: invalid syntax</code>. What? How was that possible? After a closer look I realised the dictionary in the file was something like this:<br><p><code>{'one': 1, 'two': 2, 'three': {...}}</code></p>The key <code>three</code> value was <code>{...}</code>, which caused the invalid syntax error.<br><p>Pasting this dictionary on a python 2 interpreter raises a <code>Syntax Error</code> exception. Pasting it on a python 3 interpreter the assigned value results to be <code>{'one': 1, 'two': 2, 'three': {Ellipsis}}</code>. <p>So, what does <code>{...}</code> mean in python 2 and why the syntax is invalid in python 2 even if the value is printed in the log file from a python 2 script?</p></p>
