1.1 --- a/lib/operator/sequence.py Sun Feb 05 18:12:40 2017 +0100
1.2 +++ b/lib/operator/sequence.py Sun Feb 05 18:17:14 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Operator support.
1.6
1.7 -Copyright (C) 2010, 2013, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2010, 2013, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -21,12 +21,18 @@
1.13
1.14 # Access and slicing functions.
1.15
1.16 +def delitem(a, b):
1.17 + a.__delitem__(b)
1.18 +
1.19 def getitem(a, b):
1.20 return a.__getitem__(b)
1.21
1.22 def setitem(a, b, c):
1.23 a.__setitem__(b, c)
1.24
1.25 +def delslice(a, b, c):
1.26 + a.__delitem__(slice(b, c))
1.27 +
1.28 def getslice(a, b, c):
1.29 return a.__getitem__(slice(b, c))
1.30