MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/e5kj81/so_many_things_wrong/f9mibac/?context=3
r/badcode • u/[deleted] • Dec 03 '19
106 comments sorted by
View all comments
Show parent comments
47
But they could have just used
while True: print('69')
33 u/kkjdroid Dec 04 '19 But this way, it eventually runs you out of RAM. 4 u/botle Dec 04 '19 Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen. 6 u/kkjdroid Dec 04 '19 When a number gets too big (or in this case, small) for its container to hold, Python just makes it a bigger container instead of wrapping around like C does.
33
But this way, it eventually runs you out of RAM.
4 u/botle Dec 04 '19 Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen. 6 u/kkjdroid Dec 04 '19 When a number gets too big (or in this case, small) for its container to hold, Python just makes it a bigger container instead of wrapping around like C does.
4
Why would it run out of RAM? I'm not too familiar with Python, but in C it wouldn't happen.
6 u/kkjdroid Dec 04 '19 When a number gets too big (or in this case, small) for its container to hold, Python just makes it a bigger container instead of wrapping around like C does.
6
When a number gets too big (or in this case, small) for its container to hold, Python just makes it a bigger container instead of wrapping around like C does.
47
u/archpawn Dec 03 '19
But they could have just used