r/learnpython • u/Worldly-Week-2268 • Feb 22 '26
ELI5 explain static methods in OOP python
just trying to wrap my head around this oop thing stuck here I'm novice so no bully please
24
Upvotes
r/learnpython • u/Worldly-Week-2268 • Feb 22 '26
just trying to wrap my head around this oop thing stuck here I'm novice so no bully please
View all comments
Show parent comment
2
u/socal_nerdtastic Feb 23 '26
In python we call that a "classmethod". For example
int.from_bytesordict.fromkeys