Returns `true` if a string is a private identifier, such that, when the identifier is defined in a class definition, it will be mangled prior to code generation. See: .
(id: &str)
| 48 | /// |
| 49 | /// See: <https://docs.python.org/3/reference/expressions.html#private-name-mangling>. |
| 50 | pub fn is_mangled_private(id: &str) -> bool { |
| 51 | id.starts_with("__") && !id.ends_with("__") |
| 52 | } |
| 53 | |
| 54 | /// Returns `true` if a string is a PEP 8-compliant module name (i.e., consists of lowercase |
| 55 | /// letters, numbers, underscores, and is not a keyword). |
no test coverage detected