A question about import

MRAB python at mrabarnett.plus.com
Fri Feb 16 15:32:05 EST 2024


On 2024-02-16 20:07, Gabor Urban via Python-list wrote:
> Hi guys,
> 
> I need something about modules to be clarified.
> 
> Suppose I have written a module eg: ModuleA which imports an other
> module, let us say the datetime.
> 
> If I import ModuleA in a script, will be datetime imported automatically?
> 
Yes. When a module is imported it can import other modules.


More information about the Python-list mailing list