Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python's -1 is the 0-based index of the last element.


Surely it should be -0 :-)


It's sort of the reverse direction 0-index :).


~0 is the new -1 :)


That's true. :)




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

Search: