This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients docs@python, martin.panter, mdk
Date 2018-06-16.13:32:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1529155969.73.0.56676864532.issue33878@psf.upfronthosting.co.za>
In-reply-to
Content
I think I intended the third option to include all comma-separated lists, including:

a, b, c = x  # No brackets
(a, b, c) = x  # Round brackets
[a, b, c] = x  # Square brackets
a, = x  # Single target with comma

Perhaps something like this would be clearer:

* If the target list is
    * a comma-separated list of targets, with or without brackets, or
    * a single target with a trailing comma, with or without brackets, or
    * a single target in square brackets,
  the object must be . . .

The empty target list case could also be merged. Then the only differentiation is between a single target (no comma, optional round brackets) and iterable unpacking.
History
Date User Action Args
2018-06-16 13:32:49martin.pantersetrecipients: + martin.panter, docs@python, mdk
2018-06-16 13:32:49martin.pantersetmessageid: <1529155969.73.0.56676864532.issue33878@psf.upfronthosting.co.za>
2018-06-16 13:32:49martin.panterlinkissue33878 messages
2018-06-16 13:32:49martin.pantercreate