this post was submitted on 22 Nov 2025
293 points (98.3% liked)
Programmer Humor
39433 readers
117 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
AFAIK the syntax seems to be the same.
works when typed into the Python console, no class needed. I program as a hobby, I'm no expert on the language, but does Python even differentiate between functions and class methods internally? Other than just scope? There's a possibility I'll learn something today.
Nope Def is universal for definition of a function wether it be a class method main method or even nested method
I thought python was one of those weird OOP languages like Java or C# that bound all classless methods to some universal static class but im wrong on that.
They are out there though so be on the lookout for these languages that doesnt believe in algebra.
If you want to do anything of any scale with Python, you need to understand OOP because that's how modules work, but you can use it without.