nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 2 years agoI wishi.imgur.comexternal-linkmessage-square187fedilinkarrow-up1932
arrow-up1932external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 2 years agomessage-square187fedilink
minus-squareGoddard Guryon@sopuli.xyzlinkfedilinkarrow-up10·2 years agoThat won’t work tho, you need to make it sys.maxsize//2 to coerce the output into int form
minus-squarerobotica@lemmy.worldlinkfedilinkarrow-up4·2 years agorange() accepts floats, does it not?
minus-squareGoddard Guryon@sopuli.xyzlinkfedilinkarrow-up1·2 years agoIIRC it doesn’t; that has caused me pain so many times when trying to generate fractional range
That won’t work tho, you need to make it sys.maxsize//2 to coerce the output into int form
range()
accepts floats, does it not?IIRC it doesn’t; that has caused me pain so many times when trying to generate fractional range