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 serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, ned.deily, serhiy.storchaka
Date 2016-12-31.06:54:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483167251.58.0.877408325538.issue29116@psf.upfronthosting.co.za>
In-reply-to
Content
Different cases accept different types. Not always we can say that only one specific type is accepted.

"list +" accepts only lists, "list +=" is a syntax sugar for list.extend and accepts any iterables. "bytes +" and "bytearray +=" accept any objects that support the buffer protocol. "array +" and "array +=" accept only arrays.

Changing semantic is out of the scope of this issue. I think there are reasons for current behavior.
History
Date User Action Args
2016-12-31 06:54:11serhiy.storchakasetrecipients: + serhiy.storchaka, ned.deily, Jim Fasarakis-Hilliard
2016-12-31 06:54:11serhiy.storchakasetmessageid: <1483167251.58.0.877408325538.issue29116@psf.upfronthosting.co.za>
2016-12-31 06:54:11serhiy.storchakalinkissue29116 messages
2016-12-31 06:54:11serhiy.storchakacreate