durusmail: quixote-users: help
help
help
Neil Schemenauer
2003-07-02
On Wed, Jul 02, 2003 at 03:34:58PM -0400, Mark Bucciarelli wrote:
> relative == "from this import that"?

No.  If a module in a package imports another module in the package
using a relative name then that's a relative import.  For example,
quixote.publisher has

    from quixote.http_response import HTTPResponse

That's absolute.  If it was

    from http_response import HTTPResponse

then that's relative.  It's usually best to stick with absolute imports.
It's annoying because things break if you rename the package but it
seems the be the lesser of two evils.

  Neil

reply