Skip to content

Add variadic construction for slice - #697

Open
filiplajszczak wants to merge 1 commit into
spylang:mainfrom
filiplajszczak:slice_variadic
Open

filiplajszczak wants to merge 1 commit into
spylang:mainfrom
filiplajszczak:slice_variadic

Conversation

@filiplajszczak

Copy link
Copy Markdown
Contributor

Accept the one-, two-, and three-argument slice forms supported by CPython.

Normalize slice(stop) to omitted start and step values, and slice(start, stop) to an omitted step, while preserving the existing specialization for integer and None components.

Accept the one-, two-, and three-argument `slice` forms supported by CPython.

Normalize `slice(stop)` to omitted start and step values, and `slice(start, stop)` to an omitted step, while preserving the existing specialization for integer and `None` components.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant