Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
We want this, because:
- Specializing for indexing by int and by slice are different and should be treated differently
- It avoids creating the temporary slice object.
- Indexing by slice is syntactically distinct from indexing by object. The compiler can generate better code if it has different instructions.
For full discussion seefaster-cpython/ideas#319