On Thu, Nov 26, 2015 at 8:02 PM, fl <rxjw...@gmail.com> wrote: > Are there something, my input or Python difference > make the output different?
Anything involving the disassembly of Python code depends heavily on internal interpreter details. You just quoted something showing that ancient versions of Python did at run-time what current versions have optimized to a compile-time construction (and thus the quick LOAD_CONST instead of the full work of building the tuple). If you switch to PyPy, Jython, IronPython, or some other implementation of the language, the byte code may be completely different - or may not be available at all. Using dis.dis is a great way of finding out what is actually happening, but it's never something you can depend on the stability of. ChrisA -- https://mail.python.org/mailman/listinfo/python-list