Message270147
When slicing strings, IndexError is not raised when the slices are out of bounds, even for negative indexes. Like so:
>>> "test"[-1000:1000]
'test'
>>> "test"[-1000:1]
't'
>>> ""[-100:100]
''
This seems more like a bug than useful behaviour to me. |
|
Date |
User |
Action |
Args |
2016-07-11 01:04:08 | Elizacat | set | recipients:
+ Elizacat |
2016-07-11 01:04:08 | Elizacat | set | messageid: <1468199048.87.0.686110972402.issue27479@psf.upfronthosting.co.za> |
2016-07-11 01:04:08 | Elizacat | link | issue27479 messages |
2016-07-11 01:04:08 | Elizacat | create | |
|