[issue41637] Calling with an infinite number of parameters is not detected

2020-08-30 Thread Camion
Camion added the comment: I understand all that. But the problem is that it should crash the program and not the interpreter. -- ___ Python tracker ___

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It does not differ much from list(inf()). Sooner or later it will raise MemoryError. You can interrupt the execution by pressing Ctrl-C. Although the response may be slow if your computer started swapping. There is nothing special about unpacking infinite

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Camion
Camion added the comment: Well, I know an infinite loop  is not necessarily wrong, especially in a generator. and I also know how to avoid this problem. My problem is not there. It's just that I believe it should possibly crash the program and not the interpreter. I even wonder if being able

[issue41637] Calling with an infinite number of parameters is not detected

2020-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: 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