importing: what does "from" do?
John Gordon
gordon at panix.com
Thu Jan 21 10:59:15 EST 2016
In <n7qugv$a3j$4 at dont-email.me> "Charles T. Smith" <cts.private.yahoo at gmail.com> writes:
> > How did this error come up? Did the code work previously? If so, what
> > changed?
> The developers of this legacy code had this as well as other functions
> duplicated throughout the system, in order to avoid confronting these
> issues.
Yes, but did the code work previously? If so, what changed?
> I'm trying to untangle the mess - without rewriting thousands of lines
> of application code.
At worst you'd have to move some things into a new module, and change the
statements that import those things. You shouldn't have to rewrite any of
the actual code.
--
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