[docs] [issue32109] Separated square brackets will generate a tuple instead of a list.
Berker Peksag
report at bugs.python.org
Wed Nov 22 02:09:18 EST 2017
New submission from Berker Peksag <berker.peksag at gmail.com>:
Thank you for your report and for the PR, but I think you misunderstood documentation:
Using square brackets, separating items with commas: [a], [a, b, c]
The comma is used to show two different lists: a list with one item ``[a]`` *and* a list with three items ``[a, b, c]``, not a tuple with two lists ``[a], [a, b, c]`` (In Python, both ``(1,)`` and ``1,`` create a tuple)
----------
nosy: +berker.peksag
resolution: -> not a bug
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32109>
_______________________________________
More information about the docs
mailing list