diff options
author | Boxiang Sun <daetalusun@gmail.com> | 2018-06-08 07:34:47 +0800 |
---|---|---|
committer | Boxiang Sun <daetalusun@gmail.com> | 2018-07-02 13:47:21 +0000 |
commit | d16894f9bf9a2dfea1204469bf818a2ca7aeaa38 (patch) | |
tree | 52bb92ab05ac863eb05585cf4479be9236464b34 /sources/pyside2/tests/QtWebEngineWidgets | |
parent | f70ecd23821c41b5c689cdb52d58af767ad45f97 (diff) |
Implement proper slice assignment for QByteArray
Index assignment now only accept str/bytes, bytearray, QByteArray with
size 1;
Slice assignment only accept str/bytes, bytearray, QByteArray with
limitation, that is if the step is not 1, then the number slots and
the size of the target value must be equal.
Range delete: a[2:5] = None
Shrink: value length smaller than the slot length of the slice
Expanse: value length bigger than the slot length of the slice
Range assignment with step: a[2:5:1] = ...
Range assignment with step which bigger than 1: a[2:9:2] = ...
Range assignment with native step: a[5:2:-1]
Change-Id: Ib9b929d09a691ed18c91e0c1c6b5dde827bf8d42
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/tests/QtWebEngineWidgets')
0 files changed, 0 insertions, 0 deletions