[Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
Daniel Holth
dholth at gmail.com
Wed Dec 18 18:22:18 CET 2013
More information about the Python-Dev mailing list
Wed Dec 18 18:22:18 CET 2013
- Previous message: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
- Next message: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Dec 18, 2013 11:54 AM, "Tim Peters" <tim.peters at gmail.com> wrote: > [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: > > random.random() > You can keep your "premature optimizations" thank you :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20131218/0d24621e/attachment.html>
- Previous message: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
- Next message: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list