Message375904
The following code will obviously cause a memory leak, but this will not be detected and crash the interpreter:
def inf():
while True: yield 0
def use(*parm):
for i in parm: print(i)
and then
use(*inf())
or
print(*int())
The reason of this test is that I wanted to check if ever python would be able to make lazy evaluation in parameter passing (It would be nice if it was but it is not the case). However, at least, I think this error should have been detected as well as an infinite recursion is, because it even has been able to crash and reboot a not so old (18) version of linux Mint. |
|
Date |
User |
Action |
Args |
2020-08-26 05:23:56 | Camion | set | recipients:
+ Camion |
2020-08-26 05:23:56 | Camion | set | messageid: <1598419436.9.0.814986663177.issue41637@roundup.psfhosted.org> |
2020-08-26 05:23:56 | Camion | link | issue41637 messages |
2020-08-26 05:23:56 | Camion | create | |
|