Re: [Tutor] relative imports within a package?

2015-11-07 Thread Steven D'Aprano
On Sat, Nov 07, 2015 at 04:09:19PM -0600, James Hartley wrote: > The Python 3 tutorial discusses relative imports at: > > https://docs.python.org/3/tutorial/modules.html#intra-package-references > > I have the following directory structure for a package in development: > > + outer_package/ >

[Tutor] relative imports within a package?

2015-11-07 Thread James Hartley
The Python 3 tutorial discusses relative imports at: https://docs.python.org/3/tutorial/modules.html#intra-package-references I have the following directory structure for a package in development: + outer_package/ + __init__.py + inner_package | + __init__.py | + mycl

Re: [Tutor] relative imports

2011-02-24 Thread Alex Hall
Sorry, I forgot to say that the error is: ValueError: attempted relative import in non-package. On 2/24/11, Alex Hall wrote: > Hi all, > I am trying to place some common files into a folder so that all files > in other folders can access the common files. That is, the file for a > card class, a d