python-intelhex / intelhex

Python IntelHex library
BSD 3-Clause "New" or "Revised" License
198 stars 106 forks source link

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

Open bialix opened 6 years ago

bialix commented 6 years ago

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.