The convention should use _ as a prefix:
class PublicClass(object):
pass
class _PrivateClass(object):
pass
Following:
from module import *
Will not import _PrivateClass.
But that will not stop them from importing it. They could still import it explicitly.
from module import _PrivateClass
source
share