Quick question:
from x import y, z
Is there any way that I can access the name of x
within the script?
I know that if I look at the locals()
or globals()
dict, that I can see y
and z
, but I can't seem to find a way to look for x
.
Quick question:
from x import y, z
Is there any way that I can access the name of x
within the script?
I know that if I look at the locals()
or globals()
dict, that I can see y
and z
, but I can't seem to find a way to look for x
.
you need to also import x
in that case. It's not a weird thing to do in my opinion.