On Thu, Apr 16, 2009 at 3:21 AM, ALAN GAULD wrote:
>
>
>> In general, importing a package does not give access to members of a
>> sub-package.
>
> Interestingly I added the comment about sub packages specifically
> because I remembered os.path and assumed it was the norm! :-)
Yes, it took me a lo
> In general, importing a package does not give access to members of a
> sub-package. You have to explicitly import the subpackage. For
> example,
>
> In [1]: import xml
> In [2]: xml.dom.Node
> ---
> AttributeError
On Wed, Apr 15, 2009 at 6:57 PM, Alan Gauld wrote:
> When you import you import names, in the first case webapp.
> Where the name is a package (ie a folder) that gives you access
> to the modules (or sub packages) contained in that folder but
> not to the contents of those items directly, hence t
"Giorgio Bonfiglio" wrote
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
The first line imports the webapp subpackage (that is not actually a
module,
it's a subdirectory with some .py files into). So why do i need to import
the specific fun
Hi,
hope this mailing list is still active.
I'm learning phyton. I can write simple programs, and i've studied all
examples provided by the Google App Engine Documentation.
As i understood, i can import a module using something like:
import modulename
Or, import a specific function, using:
fro