Hi All,
Say there are 3 files.
a.py and b.py uses *import c* (which is the third python file c.py)
is there a way we can know inside c.py that whether its a or b who is doing
the importing?
Nitin K
___
BangPypers mailing list
BangPypers@python.org
htt
On 15 July 2014 15:25, Nitin Kumar wrote:
> Hi All,
>
> Say there are 3 files.
>
> a.py and b.py uses *import c* (which is the third python file c.py)
>
> is there a way we can know inside c.py that whether its a or b who is doing
> the importing?
You can use the inspect module to get this inform
the 'Jobs' link in your footer doesn't work.
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers