You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks! Confirmed replication of bug. Looks like min(("a string heh", some_int_maybe)) fails to explode here, but also doesn't do any casting, which is why you got no traceback & the wrong behavior. (I honestly don't know whatmin() is doing to the string here, it's rather curious.)
I explicitly added an int() cast to the line that obtains the final value (before min'ing it with the host list length) and this appears to work correctly. Will post bugfix in a sec.
Also, you have good timing, I was going to push out more releases today anyway -- so 1.5.4 will be out soon.
Activity
bitprophet commentedon Feb 27, 2013
Thanks! Confirmed replication of bug. Looks like
min(("a string heh", some_int_maybe))fails to explode here, but also doesn't do any casting, which is why you got no traceback & the wrong behavior. (I honestly don't know whatmin()is doing to the string here, it's rather curious.)I explicitly added an
int()cast to the line that obtains the final value (beforemin'ing it with the host list length) and this appears to work correctly. Will post bugfix in a sec.Also, you have good timing, I was going to push out more releases today anyway -- so 1.5.4 will be out soon.
bitprophet commentedon Feb 27, 2013
Derp, wasn't entirely that simple due to some more bad logic that went undetected thanks to
minbeing a piece of crap. Fixed now; testing + pushing.