5 ms·
Great catch. If you want to submit a pull request on github you can get the credit -- github.com/dcrosta/xrange
by dcrosta 14y ago
Great catch. If you want to submit a pull request on github you can get the credit -- github.com/dcrosta/xrange
- sltkr 14y agoThanks for the consideration, but I don't really use github, so you go ahead and take the credit yourself.
- dcrosta 14y agoOK, thanks. Updated in github and on the blog.
- graue 14y agoA related nitpick: since Python's integers are arbitrary size, technically operations like - and / are not constant time, so your claim of an implementation "with constant-time and constant-space operations" is not true. However, I understand if that complaint is just too nitpicky for you to want to mention it. Great post btw.