Hello dear fellow SO community I was wondering what is the difference between the following two statements:
from os import path #importing symbol
import os.path as path #importing module as symbol?
since this question was tagged duplicate for this topic I would like to extend the question.
In the above "duplicate" link, 2nd answer (by Michael Ray Lovett) shows that, importing the module affects the module's variables globally while importing the symbol only, affects the local implementation
I would like to know;
Does both of them import symbols only (locally affected) or does module importing (2nd option) let the global change of the variable
Does importing module take less space in ram since importing symbol initiates unique variables per import (which takes ram space)