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 

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 

(<__main__.Dummy object at 0x000001839C1F32E8>, <__main__.Dummy object at 

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>
Python-bugs-list mailing list

Reply via email to