1 #!/usr/bin/env python 2 3 """ 4 Operator support. 5 6 Copyright (C) 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk> 7 8 This program is free software; you can redistribute it and/or modify it under 9 the terms of the GNU General Public License as published by the Free Software 10 Foundation; either version 3 of the License, or (at your option) any later 11 version. 12 13 This program is distributed in the hope that it will be useful, but WITHOUT 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 16 details. 17 18 You should have received a copy of the GNU General Public License along with 19 this program. If not, see <http://www.gnu.org/licenses/>. 20 """ 21 22 from operator.augmented import ( 23 iadd, 24 iand_, 25 idiv, 26 ifloordiv, 27 ilshift, 28 imod, 29 imul, 30 ior_, 31 ipow, 32 irshift, 33 isub, 34 ixor, 35 ) 36 37 from operator.binary import ( 38 add, 39 and_, 40 contains, 41 div, 42 floordiv, 43 in_, 44 not_in, 45 lshift, 46 mod, 47 mul, 48 or_, 49 pow, 50 rshift, 51 sub, 52 xor, 53 ) 54 55 from operator.comparison import ( 56 eq, 57 ge, 58 gt, 59 le, 60 lt, 61 ne, 62 ) 63 64 from operator.core import ( 65 is_, 66 is_not, 67 ) 68 69 from operator.sequence import ( 70 delitem, 71 getitem, 72 setitem, 73 delslice, 74 getslice, 75 setslice, 76 ) 77 78 from operator.unary import ( 79 invert, 80 neg, 81 not_, 82 pos, 83 ) 84 85 from __builtins__.span import slice # for Sliceobj instantiation 86 87 # vim: tabstop=4 expandtab shiftwidth=4