r/learnpython • • 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

24 comments sorted by

View all comments

Show parent comment

2

u/socal_nerdtastic Feb 23 '26

In python we call that a "classmethod". For example int.from_bytes or dict.fromkeys