On Tue, Oct 27, 2020 at 11:24 PM Chris Angelico <ros...@gmail.com> wrote:

> On Wed, Oct 28, 2020 at 5:12 PM Stephen J. Turnbull
> <turnbull.stephen...@u.tsukuba.ac.jp> wrote:
> >  > thing[i,j,k] is exactly equivalent to thing[(i,j,k)] because the
> tuple is
> >  > "created by" the parentheses.
> >
> > Is that correct?  As I understand it, the tuple is created by the
> > commas, and the parentheses are basically thrown away by the parser,
> > as usual.
>
> I think that sentence was perhaps meant to read "because the tuple is
> NOT created by the parentheses" - the rest of the post makes full
> sense that way.
>

yes, thanks -- that was a typo, and an unfortunate one, as it's kinda the
key point :-(

-CHB

-- 
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython
_______________________________________________
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/D4UOJDYQLYEHWGQN5K3ZPDB54HJ6IDDW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to