[Mark Hammond] > ... > Hrm - OK - I bit the bullet, and re-booted as German locale. If I > remove all calls to setlocale(), I can provoke come *very* strange > math errors. Both: > > ... > - and in the "training" dialog, I can reproduce the original bug: > > File "E:\src\spambayes\Outlook2000\dialogs\AsyncDialog.py", line > 45, in set_stages > assert (abs(start_pos-1.0)) < 0.001, \ > AssertionError: Proportions must add to 1.0 (1.0,(('', 1.0),)) That one is still baffling to me, for reasons explained in great detail before (if none of the float literals in this file get screwed, *or* if all of them get screwed by locale, this assert shouldn't fail -- locale has to be screwing up some of the float literals but not others, and that possibility remains baffling to me). Note that I checked in a new version of this assert that displays more info when it fails.
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