Terry J. Reedy added the comment: (Siming, when you post a mixture of code and output, please comment out output with # so the example can be run as is.)
I cannot reproduce the difference reported. I added #s and ran the cut and pasted code (uploaded) on 2.7, 3.5, and 3.6 installed on Win 10. For 3.6, Python 3.6.0b2 (default, Oct 10 2016, 21:15:32) [MSC v.1900 64 bit (AMD64)] on win32 For me, the tuple output is exactly the same as the list output, except for '()' versus '[]'. In 3.5+, 'instance' is changed to 'object' for both list and tuple. (<__main__.Dummy object at 0x000001839C1F32E8>, <__main__.Dummy object at 0x000001839C384DA0>) Siming, please cut and paste the interactive splash line, like the above, that tells us the binary and OS you used. ---------- nosy: +terry.reedy Added file: http://bugs.python.org/file45094/tem.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28442> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com