Message416971
> but it's messy and potentially tricky to get the actual first and last values of the range
Doesn't simple indexing already provide what you need here?
>>> range(1, 5, 2)[0] # first element of range
1
>>> range(1, 5, 2)[-1] # last element of range
3 |
|
Date |
User |
Action |
Args |
2022-04-08 10:13:09 | mark.dickinson | set | recipients:
+ mark.dickinson, phr |
2022-04-08 10:13:09 | mark.dickinson | set | messageid: <1649412789.74.0.282346855746.issue47257@roundup.psfhosted.org> |
2022-04-08 10:13:09 | mark.dickinson | link | issue47257 messages |
2022-04-08 10:13:09 | mark.dickinson | create | |
|