Mark Shannon <m...@hotpy.org> added the comment:

I think this is a combination of https://bugs.python.org/issue44297 and the 
PREDICT macros.

I don't have a  windows machine to confirm this on, but I suspect that if you 
rewrite `doit` as:

def doit():
    o = ((1,2), (3,4))
    o = (a for
         a in
         o)
    for tup in o:
        x = tup[0]
        y = tup[1]

then you should be able to observe a difference between Windows and Mac on 3.9 
as well.

----------

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

Reply via email to