[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-15 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: fixed -> out of date stage: -> resolved ___ Python tracker ___

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Siming Yuan
Siming Yuan added the comment: my apologies, was in a rush to get it posted. attached a better version of the file. i can reproduce this in python 3.4.1 and python 2.7.8 (both 32 and 64 bit) on RHEL 6.6 however after verifying again - this doesn't seem to be an issue in 3.4.5 (did not

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Terry J. Reedy
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

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5 -Python 3.4 ___ Python tracker ___ ___

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Siming Yuan
Changes by Siming Yuan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Siming Yuan
New submission from Siming Yuan: if you subclass a list, and cast it to tuple, the casting does not iterate through the list. (casing to list does) for example, i needed a WeakList where the list only internally contains WeakReferences that gets deleted as soon as the object ref count goes to

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-14 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___