Message278673
(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. |
|
Date |
User |
Action |
Args |
2016-10-14 22:57:58 | terry.reedy | set | recipients:
+ terry.reedy, rhettinger, siming85, xiang.zhang |
2016-10-14 22:57:58 | terry.reedy | set | messageid: <1476485878.26.0.96298130622.issue28442@psf.upfronthosting.co.za> |
2016-10-14 22:57:58 | terry.reedy | link | issue28442 messages |
2016-10-14 22:57:58 | terry.reedy | create | |
|