[Python-Dev] None as slice params to list.index() and tuple.index()

Robert Collins robertc at robertcollins.net
Sun Nov 6 20:39:22 CET 2011


On Mon, Nov 7, 2011 at 8:16 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:
> Either that or fix the error message. I can't find much benefit in
> accepting None, that said (nor in refusing it).

Its very convenient when working with slices to not have to special
case the end points. +1 on accepting None, FWIW.

-Rob


More information about the Python-Dev mailing list