▲ | Spivak 6 days ago | |||||||
What do you mean by this? Because everything in Python is object, even classes and functions are objects. Do you just mean that Python lets you write functions not as part of a class? Because yeah there's the public static void main meme but static functions attached to a class is basically equivalent to Python free functions being attached to a module object. | ||||||||
▲ | lisbbb 6 days ago | parent | next [-] | |||||||
OOP is not shoved down your throat with Python, though. With Python, I can choose what taxonomies deserve an OOP treatment and which do not. Spoiler: Almost nothing is a taxonomy of any remarkable nature. | ||||||||
| ||||||||
▲ | fc417fc802 6 days ago | parent | prev [-] | |||||||
If I call something a function does that mean I'm "doing functional programming" any time I use it? I use both C++ and Python but I wouldn't describe any of what I write as "object oriented". | ||||||||
|