[issue42510] Tuple Slice Bug

2020-11-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (2) is not a tuple. It is just a number 2. To make a tuple containing a single item you need to use special syntax: add a comma to that item. Parenthesis are optional. >>> (2) 2 >>> (2,) (2,) >>> 2, (2,) -- nosy: +serhiy.storchaka resolution: ->

[issue42510] Tuple Slice Bug

2020-11-30 Thread Sathvik Rao Poladi
New submission from Sathvik Rao Poladi : >>>a=1,2,3,4 >>>a[1:2] (2,) Expected output -> (2) bug -> , -- components: Build messages: 382118 nosy: p.saisathvikrao priority: normal severity: normal status: open title: Tuple Slice Bug type: behavior versions: Python 3.9 __