Hacker News new | ask | show | jobs
by steveklabnik 2717 days ago
> What I don't understand is why slices are indexed in bytes and not in objects.

Slicing is an O(1) operation, and that would be an O(n) operation.