Lichen

Annotated lib/operator/__init__.py

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