On 03/20/2018 03:21 PM, Robin Becker wrote:
I don't know how I never came across this before, but there's a curious
asymmetry in the way ranges are limited
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "lic
So eventually I tried this
C:\code\hg-repos\reportlab>\python36\python
-c"s='0123456789';print(repr(s[-5:15]))"
'56789'
C:\code\hg-repos\reportlab>\python36\python
-c"s='0123456789';print(repr(s[-6:15]))"
'456789'
and the light dawned :) seems the negative indexes rules apply to both
On