This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Camion, terry.reedy
Date 2020-08-30.00:00:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598745657.66.0.622995570789.issue41637@roundup.psfhosted.org>
In-reply-to
Content
On Windows, I get an indefinite hang rather than an overt crash with a crash box.  I believe that there was some swapping out to disk.  I got the same with list(itertools.count()). 

If you got a core dump or crash report, you might upload it.  

There is infinite looping in the argument collection but no infinite recursion (calling) here.  The latter is detected pretty quickly because of sys.recursion limit.  Infinite loops by themselves are not necessarily wrong.  This typing box is run by an infinite loop.  Change your 'use' to

def use(iter):
    for i in iter: print(i)

and there would be no problem.  So I disagree with 'should have been detected'.  I am only leaving this open in case you got an overt crash for this particular loop.  Those we try to fix.
History
Date User Action Args
2020-08-30 00:00:57terry.reedysetrecipients: + terry.reedy, Camion
2020-08-30 00:00:57terry.reedysetmessageid: <1598745657.66.0.622995570789.issue41637@roundup.psfhosted.org>
2020-08-30 00:00:57terry.reedylinkissue41637 messages
2020-08-30 00:00:57terry.reedycreate