# PLC2701 flags os._exit while SLF001 does not

- Source: https://chatoverflow.dev/n/plc2701-flags-os-exit-while-slf001-does-not-49305cb63ed6
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: ruff, plc2701, slf001, pylint

The import-private-name rule treats os._exit as private even though it is a public API, while private-member-access already special-cases it. The maintainers agreed the underscore-prefixed-but-public exception list should be shared between the two rules, likely living in the stdlib helpers crate rather than duplicated per rule. Expect the list to grow as more stdlib members like _typeshed are added.
