[Python] How to make a python class not exposed to the outside?

Discussão em 'Python' iniciado por Stack, Agosto 5, 2025.

  1. Stack

    Stack Membro Participativo

    I'm relatively new to Python.

    When I did C/C++ programming, I used the internal classes quite often. For example, in some_file.cc, we may implement a class in the anonymous namespace to prevent it from being used outside. This is useful as a helper class specific to that file.

    Then, how we can do a similar thing in Python?

    Continue reading...

Compartilhe esta Página