[Python-Dev] Backward-incompatible change to random.randrange in 2.7.6

Tim Peters tim.peters at gmail.com
Wed Dec 18 17:54:26 CET 2013

[Daniel Holth]
> But who could forget njzrs' wasp UAV software line 107, using
> int=float? https://github.com/nzjrs/wasp/blob/master/sw/groundstation/wasp/__init__.py#L107

I could forget it ;-)  The remarkable thing about the two instances of:

     random.randrange(0.0,1.0, int=float)

in that file is that they're obscure and inefficient ways to spell:


Which reminds me.  I used to think there was no such thing as a stupid
question.  Then I discovered Stack Overflow ;-)

More information about the Python-Dev mailing list