How to structure packages

John Gordon gordon at
Wed Sep 7 18:11:11 CEST 2011

In <2a4f542c-a8c1-46c7-9899-a3fad0940cf6 at> bclark76 <bclark76 at> writes:

> mypackage

> from mypackage import MyClass

Try this instead:

  from mypackage.MyClass import MyClass

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list