-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: __
private members/name mangling in classes
#853
Labels
Comments
Background:
Outputs:
Which is not name mangled. PS: Looks like a game, but it is actually an scientific experiment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry, I would expect that this probably documented but I just cannot find it:
https://docs.python.org/3/tutorial/classes.html?highlight=name mangling#private-variables
Short question: Is this supported in some way? Or are there plans to support it?
It seems to be such a core-feature of Python that I kind of feel stupid to ask, I would bet that it was decided to not implement that feature somewhere/somehow, but I cannot find a reference to that decision or if it even was made?
To me this would be a very awesome feature, because it is for me the feature that avoids naming collisions in classes for something like Class-Mixins. I am reviving an old project of mine which consists converting an old piece of Python code to a web-capable implementation, and this would make those conversion efforts a LOT more convenient.
The text was updated successfully, but these errors were encountered: