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 rhettinger
Recipients devkapilbansal, eric.smith, rhettinger, xtreak
Date 2021-09-26.20:58:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632689902.13.0.294819169882.issue45293@roundup.psfhosted.org>
In-reply-to
Content
Kapil, this behavior was intentional (not a bug), but later regarded as a design mistake.  GvR has said that if he had to do it over again list.__iadd__ would only accept other lists.  The problem arises when people write "somelist += 'hello'" and expect it to add a single string with one word rather than five one letter strings.  That said, the current behavior is guaranteed, people rely on it, and we cannot change it.

As Karthikeyan points out, this is documented.  However since the docs have grown so voluminous, it is often difficult to find any one particular fact.
History
Date User Action Args
2021-09-26 20:58:22rhettingersetrecipients: + rhettinger, eric.smith, xtreak, devkapilbansal
2021-09-26 20:58:22rhettingersetmessageid: <1632689902.13.0.294819169882.issue45293@roundup.psfhosted.org>
2021-09-26 20:58:22rhettingerlinkissue45293 messages
2021-09-26 20:58:21rhettingercreate