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 BrenBarn, ashwch, benrg, docs@python, ezio.melotti, martin.panter, r.david.murray, rhettinger, terry.reedy
Date 2015-09-23.01:07:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442970443.95.0.788827814438.issue16701@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a patch documenting the += and *= mutable sequence operations. Please review my wording.

These operations already seem to be tested, at least on the basic mutable sequences: see /Lib/test/list_tests.py, test_array, test_collections, test_bytes (tests bytearray).

The only other places that I thought might be missing augmented assignment were for sets, but there is no problem there: <https://docs.python.org/dev/library/stdtypes.html#set.update>.

However, there are other operations that I think may be missing from this page of the documentation. But it might be better to handle those in a separate bug report. Some of this could build off the work in Issue 12067.

* Equality comparisons (mentioned for range and dict, but apparently not tuple, set, strings, etc)
* Ordering comparisons (not supported for range)
* min() and max() don’t really belong; maybe substitute with iter()
History
Date User Action Args
2015-09-23 01:07:24martin.pantersetrecipients: + martin.panter, rhettinger, terry.reedy, ezio.melotti, r.david.murray, docs@python, benrg, BrenBarn, ashwch
2015-09-23 01:07:23martin.pantersetmessageid: <1442970443.95.0.788827814438.issue16701@psf.upfronthosting.co.za>
2015-09-23 01:07:23martin.panterlinkissue16701 messages
2015-09-23 01:07:23martin.pantercreate