from... import...
Stargaming
stargaming at gmail.com
Fri Feb 2 23:40:39 EST 2007
fatwallet961 at yahoo.com schrieb:
> what's the from ... import keyword use for?
> for example - from contenttype import getContentType
>
> import os
> import sys
> import getopt
> import types
> import re
> import pprint
> import logging
> from contenttype import getContentType
>
> In Java what kind of statement is similar this?
>
> thanks
http://docs.python.org/ref/import.html ("The first form of" and
following, sixth paragraph)
HTH,
Stargaming
More information about the Python-list
mailing list