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 skrah
Recipients benjamin.peterson, gvanrossum, mark.dickinson, pablogsal, serhiy.storchaka, skrah
Date 2018-11-12.13:31:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542029503.31.0.788709270274.issue35207@psf.upfronthosting.co.za>
In-reply-to
Content
I just want to add one more voice for allowing the status quo:

C, OCaml, SML, Haskell allow the assignment, Ruby disallows it.

The ML family must allow it, since "let (x) = 10" is pattern matching
under the hood, and (10) = 10.

In C (gcc, clang at least, I didn't check the standard) it may be convenience.


Python's assignment unpacking is similar to pattern matching, so
while the construct is surprising at first, I think it's the right
thing to do.
History
Date User Action Args
2018-11-12 13:31:43skrahsetrecipients: + skrah, gvanrossum, mark.dickinson, benjamin.peterson, serhiy.storchaka, pablogsal
2018-11-12 13:31:43skrahsetmessageid: <1542029503.31.0.788709270274.issue35207@psf.upfronthosting.co.za>
2018-11-12 13:31:43skrahlinkissue35207 messages
2018-11-12 13:31:43skrahcreate