[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Christian, For future reference, here are some good guidelines for submitting bug reports and asking for help to debug your code: https://stackoverflow.com/help/minimal-reproducible-example http://www.sscce.org/ -- nosy: +steven.daprano __

[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Jack. There is no evidence of a bug in Python itself and it is not reasonable to ask us the study and debug your obfuscated code. I just ran random.uniform() in a tight loop for several minutes and observed no deleterious effects. Am markin

[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Jack DeVries
Jack DeVries added the comment: This doesn't look like a bug. It's hard to disentangle what your code is doing, exactly, but it's most likely that between all your nested loops and classes initializing each other, there is an exponential or greater growth in time complexity happening. As you

[issue44421] random.uniform() hangs will eating up all available RAM

2021-06-14 Thread Christian Kleineidam
New submission from Christian Kleineidam : I'm writing a model that needs a lot of random numbers. The model counts up to "Year:640: Count:1339" (taking around two minutes) and then hangs on random.uniform(0, 1). While it hangs, the amount of RAM python takes grows till it eats up all availab