aboutsummaryrefslogtreecommitdiff
path: root/Python Operators.wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-25 06:41:04 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-25 06:41:04 +0200
commit3af714e89059739f365c3a92c8833864665ff497 (patch)
tree6c64dea8648cf7e81a437a0c9aa9678988d258c0 /Python Operators.wiki
parentlör 24 jun 2023 17:53:25 CEST (diff)
downloadwiki-public-3af714e89059739f365c3a92c8833864665ff497.tar.gz
wiki-public-3af714e89059739f365c3a92c8833864665ff497.tar.xz
sön 25 jun 2023 06:41:04 CEST
Diffstat (limited to 'Python Operators.wiki')
-rw-r--r--Python Operators.wiki39
1 files changed, 39 insertions, 0 deletions
diff --git a/Python Operators.wiki b/Python Operators.wiki
new file mode 100644
index 0000000..aa9dbc1
--- /dev/null
+++ b/Python Operators.wiki
@@ -0,0 +1,39 @@
+{{{
+< __lt__
+<= __le__
+== __eq__
+!= __ne__
+>= __ge__
+> __gt_
+
++ __add__
+// __floordiv__
+~ __inv__ (or __invert__)
+<< __lshift__
+% __mod__
+* __mul__
+@ __matmul__
+- (unary) __neg__
+| __or__
++ (unary) __pos__
+>> __rshift__
+- __sub__
+/ __truediv__
+^ __xor__
++ (sequences) __concat__
+
+** __pow__
+
+in __contains__
+
+& __and__
+
+
+__abs__
+}}}
+
+{{{
+__bool__
+__str__
+__repr__
+}}}