Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 85f7604

Browse files
committed
#3204: remove slice operations from operator doc.
1 parent d61438a commit 85f7604

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

Doc/library/operator.rst

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -210,24 +210,12 @@ Operations which work with sequences include:
210210
Remove the value of *a* at index *b*.
211211

212212

213-
.. function:: delslice(a, b, c)
214-
__delslice__(a, b, c)
215-
216-
Delete the slice of *a* from index *b* to index *c-1*.
217-
218-
219213
.. function:: getitem(a, b)
220214
__getitem__(a, b)
221215

222216
Return the value of *a* at index *b*.
223217

224218

225-
.. function:: getslice(a, b, c)
226-
__getslice__(a, b, c)
227-
228-
Return the slice of *a* from index *b* to index *c-1*.
229-
230-
231219
.. function:: indexOf(a, b)
232220

233221
Return the index of the first of occurrence of *b* in *a*.
@@ -245,12 +233,6 @@ Operations which work with sequences include:
245233
Set the value of *a* at index *b* to *c*.
246234

247235

248-
.. function:: setslice(a, b, c, v)
249-
__setslice__(a, b, c, v)
250-
251-
Set the slice of *a* from index *b* to index *c-1* to the sequence *v*.
252-
253-
254236
Many operations have an "in-place" version. The following functions provide a
255237
more primitive access to in-place operators than the usual syntax does; for
256238
example, the :term:`statement` ``x += y`` is equivalent to
@@ -533,12 +515,6 @@ Python syntax and the functions in the :mod:`operator` module.
533515
+-----------------------+-------------------------+---------------------------------+
534516
| Sequence Repitition | ``seq * i`` | ``repeat(seq, i)`` |
535517
+-----------------------+-------------------------+---------------------------------+
536-
| Slice Assignment | ``seq[i:j] = values`` | ``setslice(seq, i, j, values)`` |
537-
+-----------------------+-------------------------+---------------------------------+
538-
| Slice Deletion | ``del seq[i:j]`` | ``delslice(seq, i, j)`` |
539-
+-----------------------+-------------------------+---------------------------------+
540-
| Slicing | ``seq[i:j]`` | ``getslice(seq, i, j)`` |
541-
+-----------------------+-------------------------+---------------------------------+
542518
| String Formatting | ``s % obj`` | ``mod(s, obj)`` |
543519
+-----------------------+-------------------------+---------------------------------+
544520
| Subtraction | ``a - b`` | ``sub(a, b)`` |

0 commit comments

Comments
 (0)