Re: [Tutor] sub-modules and python3

2017-05-31 Thread Ben Finney
johnf writes: > I just want to use python 3. The issue of using absolute imports seems > like a hack. Absolute import is what Python 3 does when you ask to import a module without leading dots. Relative import is what Python 3 does when you ask to import a module with leading dots. If you want

Re: [Tutor] sub-modules and python3

2017-05-31 Thread johnf
I'm not trying to support python 2 and python 3. I just want to use python 3. The issue of using absolute imports seems like a hack. What happens if a user or I need to change the path. Should I have to change the all the imports? I believe I am going to use absolute paths in the end (all

Re: [Tutor] sub-modules and python3

2017-05-31 Thread Peter Otten
john wrote: > Hi folks, > > In the past I used a simple "import filename" for sub-modules in python > 2. With python 3 I have run into errors reported (file not found) using > python 2 import statements. But I'm not asking how to correct the > import as I am able to change the way I write the i

Re: [Tutor] sub-modules and python3

2017-05-31 Thread Mats Wichmann
On 05/31/2017 11:22 AM, john wrote: > Hi folks, > > In the past I used a simple "import filename" for sub-modules in python > 2. With python 3 I have run into errors reported (file not found) using > python 2 import statements. But I'm not asking how to correct the > import as I am able to chang

[Tutor] sub-modules and python3

2017-05-31 Thread john
Hi folks, In the past I used a simple "import filename" for sub-modules in python 2. With python 3 I have run into errors reported (file not found) using python 2 import statements. But I'm not asking how to correct the import as I am able to change the way I write the import as a work arou