importing: what does "from" do?
John Gordon
gordon at panix.com
Thu Jan 21 10:31:45 EST 2016
In <n7qpel$a3j$1 at dont-email.me> "Charles T. Smith" <cts.private.yahoo at gmail.com> writes:
> from utilities import hexdump
> ImportError: cannot import name hexdump
The most likely explanation here is that the 'utilities' module simply
does not contain something named 'hexdump'.
Have you inspected the 'utilities' module? Does it, in fact, contain
something named 'hexdump'?
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list