intelhex icon indicating copy to clipboard operation
intelhex copied to clipboard

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

Open bialix opened this issue 7 years ago • 0 comments

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.

bialix avatar Jan 16 '18 07:01 bialix