Martin v. Löwis wrote: > Bob Ippolito schrieb: >> My guess is that people do have this problem, they just don't know >> where that memory has gone. I know I don't count objects unless I have >> a process that's leaking memory or it grows so big that I notice (by >> swapping or chance). > > Right. Although I do wonder what kind of software people write to run > into this problem. As Guido points out, the numbers must be the result > from some computation, or created by an extension module by different > means. If people have many *simultaneous* copies of 0.0, I would expect > there is something else really wrong with the data structures or > algorithms they use. I suspect the problem would typically stem from floating point values that are read in from a human-readable file rather than being the result of a 'calculation' as such: >>> float('1') is float('1') False >>> float('0') is float('0') False Cheers, Nick. -- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4