This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BTaskaya
Recipients BTaskaya, Batuhan Taskaya, brandtbucher, brett.cannon, levkivskyi, miss-islington, pablogsal, vstinner
Date 2020-01-07.10:27:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578392843.63.0.258174266651.issue38870@roundup.psfhosted.org>
In-reply-to
Content
ExtSlice nodes without second value doesn't roundtrip properly

source: x[1:2,]
         Expr(
             value=Subscript(
                 value=Name(id='x', ctx=Load()),
-                slice=ExtSlice(
-                    dims=[
-                        Slice(
-                            lower=Constant(value=1, kind=None),
-                            upper=Constant(value=2, kind=None),
-                            step=None)]),
+                slice=Slice(
+                    lower=Constant(value=1, kind=None),
+                    upper=Constant(value=2, kind=None),
+                    step=None),
                 ctx=Load()))],
     type_ignores=[])

(I have a fix for unifying both tuple, constant tuple and extslice dims traversing)
History
Date User Action Args
2020-01-07 10:27:23BTaskayasetrecipients: + BTaskaya, brett.cannon, vstinner, levkivskyi, pablogsal, miss-islington, brandtbucher, Batuhan Taskaya
2020-01-07 10:27:23BTaskayasetmessageid: <1578392843.63.0.258174266651.issue38870@roundup.psfhosted.org>
2020-01-07 10:27:23BTaskayalinkissue38870 messages
2020-01-07 10:27:23BTaskayacreate