importing: what does "from" do?

John Gordon gordon at panix.com
Thu Jan 21 10:44:43 EST 2016


In <n7qu0c$a3j$3 at dont-email.me> "Charles T. Smith" <cts.private.yahoo at gmail.com> writes:

> > 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'?

> Yes

In that case, the problem is most likely a circular import issue, as you
mentioned.  The only way to fix it is to reorganize your modules.

How did this error come up?  Did the code work previously?  If so, what
changed?

-- 
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