- 1

name mangling in python

If I'm using name mangling in python is this syntax correct. self.__y=__y If no please what is the correct syntax.

14th Sep 2022, 1:15 AM
The boss
The boss - avatar
2 odpowiedzi
+ 2
Can you post the full code?
14th Sep 2022, 1:30 AM
Slick
Slick - avatar
+ 1
I think that should be self.__y = y
14th Sep 2022, 3:35 AM
Bob_Li
Bob_Li - avatar