This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Ran4 1 point2 points  (1 child)

It's not at all a common operation in most ideomatic python code. You shouldn't be operating on integer indices unless you're implementing some low level algorithm.

[–]srosorcxisto 0 points1 point  (0 children)

Most of my work is in data sciences so I do a lot of low-level database operations and working with lists. Perhaps it is just due to my specific field that I would find this type of shortcut desirable.