Hacker News new | past | comments | ask | show | jobs | submit login

Great catch. If you want to submit a pull request on github you can get the credit -- github.com/dcrosta/xrange



A 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.


Thanks for the consideration, but I don't really use github, so you go ahead and take the credit yourself.


OK, thanks. Updated in github and on the blog.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: