On 30/08/20 2:10 pm, Steven D'Aprano wrote:
> I wrote:
So
I'd be fine with having to write a[(1,)] to get a one-element tuple in both
the old and new cases.

But the problem is that this is a change in behaviour,

Sorry, I got that backwards! What I should have said was that a[1,]
would continue to create a tuple, regardless of whether old or new style
indexing was happening.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/EYT2GKSTMQLKBCUJ2J7FU2LIHXLJZA5H/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to