Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lp #372625] tobinarray end parameter is inconsistent with standard python range behaviour #20

Open
bialix opened this issue Jan 16, 2018 · 0 comments

Comments

@bialix
Copy link
Member

bialix commented Jan 16, 2018

https://bugs.launchpad.net/intelhex/+bug/372625
Old bug from LP. Moving it here.

The most important bits:

Standard range function has 3 parameters: start, stop [,step]
here: stop is exclusive

My tobinXXX group of methods first parameters are: start, end
here: end is inclusive

I have 2 choices:

  1. remove end and add stop
  2. rename end to end_inclusive, and add stop additionaly.

Require API break or semi-break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant