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
attr.ibs that will be __name-mangled should be attrs-init-mangled to <name> not ClassName_<name> #619
Comments
I suspect (and just quickly half-confirmed) the fact that this does anything at all is just "by accident", and that the code just checks the first character of the attribute name. Personally I'm on the "don't use mangled attributes" team, but I guess if you're going to use them, then yeah the logical thing to do is strip the class name too. Worth noting that the same "issue" happens if you want double-underscore names, i.e.
has to be initialized via |
OK, y'all win: |
@hynek well I don't that will help You'd have to use |
So I believe the worst brunt of this bug is fixed by #950 and I wonder if it's possible to fix this (i.e. |
all attrs does is remove the leading "_" which is a bit unfortunate
I think it might be nicer as:
I currently work around it with
The text was updated successfully, but these errors were encountered: