How can I check if an identifier is dunder or class-private (i.e. will be mangled)?
How can I check if an identifier is dunder or class-private (i.e. will be mangled)? Question: I’m writing a project that gives advice about variable names, and I want it to tell if a name matches any of the reserved classes of identifiers. The first one ("private") is pretty straightforward, just name.startswith(‘_’), but dunder and …