[Python] What does a leading . (dot, period) in an import statement in Python mean?

Discussão em 'Python' iniciado por Stack, Julho 8, 2025.

  1. Stack

    Stack Membro Participativo

    I'm looking over the code for Python's multiprocessing module, and it contains this line:

    from ._multiprocessing import win32, Connection, PipeConnection


    instead of

    from _multiprocessing import win32, Connection, PipeConnection


    the subtle difference being the period before _multiprocessing. What does that mean? Why the period?

    Continue reading...

Compartilhe esta Página