What's going on here?

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Thu Jun 2 01:50:55 EDT 2016


On Monday, May 23, 2016 at 9:47:15 AM UTC+12, DFS wrote:
> def splitrange(b,e,g):
> 	sr=[]
> 	for i in range(b,e,g):
> 		bg=i;eg=min(e,bg+g-1)
> 		sr.append((bg,eg))
> 	return sr

To be more in keeping with the Python ethos, I would take out the “-1”.



More information about the Python-list mailing list