What does a . in an import statement in Python mean?

This question shows research effort; it is useful and clear

144

This question does not show any research effort; it is unclear or not useful

Show activity on this post.

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?

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.0. UTC+08:00, 2024-05-11 00:42
浙ICP备14020137号-1 $访客地图$