David MacIver added the comment:

So as a data point, this problem seems to be unique to tuple. set(x), list(x), 
tuple(iter(x)) all seem to work as expected and respect the overridden __iter__ 
(set and list were both included in the test case I attached to demonstrated 
this, iter I just checked right now). This suggests that the problem is in what 
tuple is doing, not in some general iterator protocol,

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23757>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to