Re: [BangPypers] folder initialization issues

2013-09-08 Thread Saager Mhatre
On Thu, Aug 29, 2013 at 9:43 AM, Noufal Ibrahim wrote: > Anand Chitipothu writes: > > [...] > > > Lets say you a python file x.py. > > You can import it just using "import x". > > > > If you have y/x.py, you would import it using "import y.x" or "from y > > import x". Here x is a submodule of y a

Re: [BangPypers] folder initialization issues

2013-08-29 Thread Lakshman Prasad
Such a nice explanation, Anand! On Thu, Aug 29, 2013 at 7:07 AM, Anand Chitipothu wrote: > On Thu, Aug 29, 2013 at 6:55 AM, Adivandhya > wrote: > > > hi friends, > > Im a basic python developer, and i could not understand fully the > > purpose of adding __init__.py in every folder we w

Re: [BangPypers] folder initialization issues

2013-08-28 Thread Noufal Ibrahim
Anand Chitipothu writes: [...] > Lets say you a python file x.py. > You can import it just using "import x". > > If you have y/x.py, you would import it using "import y.x" or "from y > import x". Here x is a submodule of y and y is also a module. But where is > the file for module y now? Since y

Re: [BangPypers] folder initialization issues

2013-08-28 Thread Anand Chitipothu
On Thu, Aug 29, 2013 at 6:55 AM, Adivandhya wrote: > hi friends, > Im a basic python developer, and i could not understand fully the > purpose of adding __init__.py in every folder we want to import .Could > someone please help me out understanding this.(context is based on > importing m

[BangPypers] folder initialization issues

2013-08-28 Thread Adivandhya
hi friends,         Im a basic python developer, and i could not understand fully the purpose of adding __init__.py  in every folder we want to import .Could someone please help me out understanding this.(context is based on importing modules in flask).   ADIVANDHYA.B.R