Re: [julia-users] Imported modules are brought into Main

2016-05-29 Thread Cedric St-Jean
Thank you. On Sun, May 29, 2016 at 9:21 PM, Yichao Yu wrote: > On Sun, May 29, 2016 at 8:44 PM, Cedric St-Jean > wrote: > > This is probably a conscious decision, but I was surprised that, for any > > module (eg. PyCall): > > Yes, `Main` is the central place where all imported modules are > def

Re: [julia-users] Imported modules are brought into Main

2016-05-29 Thread Yichao Yu
On Sun, May 29, 2016 at 8:44 PM, Cedric St-Jean wrote: > This is probably a conscious decision, but I was surprised that, for any > module (eg. PyCall): Yes, `Main` is the central place where all imported modules are defined. This directly follows that toplevel modules are evaluated in `Main` (i.

[julia-users] Imported modules are brought into Main

2016-05-29 Thread Cedric St-Jean
This is probably a conscious decision, but I was surprised that, for any module (eg. PyCall): module A import PyCall end PyCall # no error - PyCall was brought into Main whereas module A import PyCall end module B PyCall # error - PyCall not defined end Furthermore PyCall = 0 module B