1.1 --- a/lib/operator/sequence.py Sat Oct 29 20:17:14 2016 +0200
1.2 +++ b/lib/operator/sequence.py Sat Oct 29 20:17:38 2016 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Operator support.
1.6
1.7 -Copyright (C) 2010, 2013, 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2010, 2013, 2015, 2016 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 @@ -19,14 +19,6 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -# Necessary import since the operator module gets imported very early during
1.17 -# builtins initialisation.
1.18 -
1.19 -from __builtins__.span import slice
1.20 -
1.21 -# NOTE: The compiler should make it possible for the following functions to call
1.22 -# NOTE: the generic operator implementations with no additional call overhead.
1.23 -
1.24 # Access and slicing functions.
1.25
1.26 def getitem(a, b):
1.27 @@ -35,8 +27,6 @@
1.28 def setitem(a, b, c):
1.29 a.__setitem__(b, c)
1.30
1.31 -# NOTE: Should be able to optimise temporary instance allocations for slices.
1.32 -
1.33 def getslice(a, b, c):
1.34 return a.__getitem__(slice(b, c))
1.35