[Python-Dev] PySlice_GetIndicesEx annd stable ABI: bikeshedding (original) (raw)
Brett Cannon brett at python.org
Wed Dec 21 12:34:14 EST 2016
- Previous message (by thread): [Python-Dev] PySlice_GetIndicesEx annd stable ABI: bikeshedding
- Next message (by thread): [Python-Dev] PySlice_GetIndicesEx annd stable ABI: bikeshedding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, 21 Dec 2016 at 06:52 Serhiy Storchaka <storchaka at gmail.com> wrote:
[SNIP] Let's start bikeshedding. What are your ideas about names and the order of arguments of two following functions?
1. Takes a slice object, returns it's start, stop and step as Pyssizet values. Can fail.
start, stop, step
2. Takes slice's start, stop, step, and the length of the sequence (all are Pyssizet), returns adjusted start, stop, and the length of sliced subsequence (as Pyssizet). Always success.
length, start, stop, step
No specific ideas on names. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20161221/74b3da0e/attachment.html>
- Previous message (by thread): [Python-Dev] PySlice_GetIndicesEx annd stable ABI: bikeshedding
- Next message (by thread): [Python-Dev] PySlice_GetIndicesEx annd stable ABI: bikeshedding
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]