Message251378
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() |
|
Date |
User |
Action |
Args |
2015-09-23 01:07:24 | martin.panter | set | recipients:
+ martin.panter, rhettinger, terry.reedy, ezio.melotti, r.david.murray, docs@python, benrg, BrenBarn, ashwch |
2015-09-23 01:07:23 | martin.panter | set | messageid: <1442970443.95.0.788827814438.issue16701@psf.upfronthosting.co.za> |
2015-09-23 01:07:23 | martin.panter | link | issue16701 messages |
2015-09-23 01:07:23 | martin.panter | create | |
|