<div dir="ltr">Ethan, I am also not 100% on the new repr, I just wanted to propose this change. In the issue, I have separated that change into it's own patch to make it easier to apply the slice.literal without the repr update.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 10, 2015 at 3:16 PM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/10/2015 08:33 AM, Joseph Jevnik wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The basic idea is to provide an alternative constructor to 'slice' that uses<br>
the subscript syntax. This allows people to write more understandable code.<br>
</blockquote>
<br></span>
+1<span class=""><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is a second change proposed here and that is to 'slice.__repr__'. This<br>
change makes the repr of a slice object match the new literal syntax to make<br>
it easier to read.<br>
</blockquote>
<br></span>
-1<br>
<br>
Having the old repr makes it possible to see what the equivalent slice() spelling is.<br>
<br>
--<br>
~Ethan~<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</div></div></blockquote></div><br></div>