[issue32109] Separated square brackets will generate a tuple instead of a list.
YCmove added the comment: Yes, what Cheryl Sabella says is what I was misled to. Took me a while to understand that ``[a]``, ``[a, b, c]`` is not ``[a], [a, b, c]``, how about replace comma to "or" for more clarity? just like it used in [tuple documention](https://github.com/python/cpython/blob/master/Doc/library/stdtypes.rst#tuples) Here is my rephrased version, and I add one more example of comma separated lists in tuple according to R. David Murray. -- hgrepos: +374 ___ Python tracker <https://bugs.python.org/issue32109> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32109] Separated square brackets will generate a tuple instead of a list.
Change by YCmove : -- keywords: +patch pull_requests: +4435 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32109> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32109] Separated square brackets will generate a tuple instead of a list.
Change by YCmove : -- assignee: docs@python components: Documentation nosy: YCmove, docs@python priority: normal severity: normal status: open title: Separated square brackets will generate a tuple instead of a list. type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue32109> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com