op - Operators

native_tags.contrib.op.abs(a)
abs(a) – Same as abs(a). This is a function tag. This is a comparison tag.
native_tags.contrib.op.add(a, b)
add(a, b) – Same as a + b. This is a function tag.
native_tags.contrib.op.and_(a, b)
and_(a, b) – Same as a & b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.concat(a, b)
concat(a, b) – Same as a + b, for a and b sequences. This is a function tag.
native_tags.contrib.op.contains(a, b)
contains(a, b) – Same as b in a (note reversed operands). This is a function tag.
native_tags.contrib.op.countOf(a, b)
countOf(a, b) – Return the number of times b occurs in a. This is a function tag.
native_tags.contrib.op.delitem(a, b)
delitem(a, b) – Same as del a[b]. This is a function tag.
native_tags.contrib.op.delslice(a, b, c)
delslice(a, b, c) – Same as del a[b:c]. This is a function tag.
native_tags.contrib.op.div(a, b)
div(a, b) – Same as a / b when __future__.division is not in effect. This is a function tag. This is a comparison tag.
native_tags.contrib.op.eq(a, b)
eq(a, b) – Same as a==b. This is a comparison tag.
native_tags.contrib.op.floordiv(a, b)
floordiv(a, b) – Same as a // b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.ge(a, b)
ge(a, b) – Same as a>=b. This is a comparison tag.
native_tags.contrib.op.getitem(a, b)
getitem(a, b) – Same as a[b]. This is a function tag.
native_tags.contrib.op.getslice(a, b, c)
getslice(a, b, c) – Same as a[b:c]. This is a function tag.
native_tags.contrib.op.gt(a, b)
gt(a, b) – Same as a>b. This is a comparison tag.
native_tags.contrib.op.index(a)
index(a) – Same as a.__index__() This is a function tag. This is a comparison tag.
native_tags.contrib.op.indexOf(a, b)
indexOf(a, b) – Return the first index of b in a. This is a function tag.
native_tags.contrib.op.inv(a)
inv(a) – Same as ~a. This is a function tag. This is a comparison tag.
native_tags.contrib.op.is_(a)
is_(a, b) – Same as a is b. This is a comparison tag.
native_tags.contrib.op.is_not(a)
is_not(a, b) – Same as a is not b. This is a comparison tag.
native_tags.contrib.op.le(a, b)
le(a, b) – Same as a<=b. This is a comparison tag.
native_tags.contrib.op.lshift(a, b)
lshift(a, b) – Same as a << b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.lt(a, b)
lt(a, b) – Same as a<b. This is a comparison tag.
native_tags.contrib.op.mod(a, b)
mod(a, b) – Same as a % b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.mul(a, b)
mul(a, b) – Same as a * b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.ne(a, b)
ne(a, b) – Same as a!=b. This is a comparison tag.
native_tags.contrib.op.neg(a)
neg(a) – Same as -a. This is a function tag. This is a comparison tag.
native_tags.contrib.op.not_(a)
not_(a) – Same as not a. This is a comparison tag.
native_tags.contrib.op.or_(a, b)
or_(a, b) – Same as a | b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.pos(a)
pos(a) – Same as +a. This is a function tag. This is a comparison tag.
native_tags.contrib.op.pow(a, b)
pow(a, b) – Same as a ** b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.repeat(a, b)
repeat(a, b) – Return a * b, where a is a sequence, and b is an integer. This is a function tag.
native_tags.contrib.op.rshift(a, b)
rshift(a, b) – Same as a >> b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.setitem(a, b, c)
setitem(a, b, c) – Same as a[b] = c. This is a function tag.
native_tags.contrib.op.setslice(a, b, c, v)
setslice(a, b, c, d) – Same as a[b:c] = d. This is a function tag.
native_tags.contrib.op.sub(a, b)
sub(a, b) – Same as a - b. This is a function tag. This is a comparison tag.
native_tags.contrib.op.truediv(a, b)
truediv(a, b) – Same as a / b when __future__.division is in effect. This is a function tag. This is a comparison tag.
native_tags.contrib.op.xor(a, b)
xor(a, b) – Same as a ^ b. This is a function tag. This is a comparison tag.

Previous topic

math - mathematical operations

Next topic

pygmentize - using Pygments to highlight source code

This Page