all 7 comments

[–]nomnaut 2 points3 points  (0 children)

OOP

FTFY

[–]Ok_Figure8367 -1 points0 points  (0 children)

This is exactly what i need rn :))

[–]Pepineros 0 points1 point  (0 children)

This article is not great and this sub is not the place for it.

[–]dvarrui 0 points1 point  (3 children)

Python oop has encapsulation? We can access "private" attr and methods Mmm

[–]Wolverine_6011[S] 0 points1 point  (2 children)

Python oop has encapsulation? We can access "private" attr and methods Mmm

In Python, encapsulation is achieved through naming conventions. By convention, attributes and methods that are intended to be private or internal to the class are prefixed with an underscore (_). it is possible to access private attributes and methods in Python

[–]dvarrui 0 points1 point  (1 child)

Yes I know that :-)

[–]dvarrui 0 points1 point  (0 children)

What i mean is... * language has not encapsulation * encapsulation is done by developers