On this page
operator.gt
Prev: operator.getitem | Up: operator | Next: operator.iadd
Rel: operator.abs, operator.add, operator.and_, operator.attrgetter
Ref: docs.python.org — operator.gt
Tags: #public #python3 #stdlib #operator
Import
import operator
from operator import gt
Signature & Overview
operator.gt(a, b, /)
Same as a > b.
Usage
import operator
assert operator.gt(5, 3) is True
Gotchas
- Equivalent to
a > b.
REPL Inspect
from operator import gt
help(gt)
Linked from
Related notes
- tuts/python3/stdlib_module/operator/getitem Linked here; links to this page; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/iadd Linked here; links to this page; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/operator/abs Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/add Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/and_ Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/attrgetter Linked here; shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/call shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/concat shared tags: #operator, #stdlib
- tuts/python3/stdlib_module/operator/contains shared tags: #operator, #stdlib