Skip to content
onsuggest
Log in
Article en

Operator and Function Overloading in Custom Python Classes

Source: Real Python ·

Use Python operator overloading to make built-in functions and operators work with your own classes, and write more Pythonic code.

Keyboard shortcuts

Previous discovery
←P
Next discovery
→N
Like
L
Not for me
X
Save
S
Show this help
?
Close
Esc

Shortcuts work on the discovery page.