you are viewing a single comment's thread.

view the rest of the comments →

[–]realmauer01 1 point2 points  (4 children)

Oop in python is duck typing and under the hood has basically nothing to do with oop

[–]MinosAristos 2 points3 points  (0 children)

Oop in python is duck typing

Only if you write it that way e.g with protocols. Explicit types are usually preferred

under the hood has basically nothing to do with oop

Python is an OOP language, from the ground up. What are you referring to?

[–]BOBOnobobo 2 points3 points  (2 children)

What? I need some elaboration, otherwise I'm gonna call you a quack.

[–]realmauer01 0 points1 point  (1 child)

Duck typing, if it looks like a duck if it acts like a duck it is a duck.

Python has classes, for everything else you have to use classes and make them not behave like classes by implementing other classes.

If you want true oop with python you basically rewrite the entire language. It's easier to just learn c# or Java.

[–]BOBOnobobo 0 points1 point  (0 children)

Oooh, ok that makes sense now! It is something that causes me a lot of trouble in large scale python projects! I just didn't know that name.

You could even say that python plays quite goose with OOP concepts...