Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20998

Re: Question about circular imports

Date 2012-02-28 09:58 -0800
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Question about circular imports
References <jid2a9$n21$1@dough.gmane.org> <jid424$vfp$1@dough.gmane.org> <jieaid$e4k$1@dough.gmane.org> <mailman.189.1330323422.3037.python-list@python.org> <XnsA006CA54C1864OKB@88.198.244.100>
Newsgroups comp.lang.python
Message-ID <mailman.254.1330455105.3037.python-list@python.org> (permalink)

Show all headers | View raw


OKB (not okblacke) wrote:
>     	Anyway, testing this just reinforced my distaste for circular 
> imports.  Just trying to think about how it ought to work with a 
> importing c but then c and d importing each other makes my brain hurt.  
> Refactoring the files so that common code is in a separate library 
> imported by both is easier to understand, and has the nice side bonus 
> that it works.
> 

+1 QOTW

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Question about circular imports "Frank Millman" <frank@chagford.com> - 2012-02-27 08:16 +0200
  Re: Question about circular imports "OKB (not okblacke)" <brenNOSPAMbarn@NObrenSPAMbarn.net> - 2012-02-28 03:55 +0000
    Re: Question about circular imports Ethan Furman <ethan@stoneleaf.us> - 2012-02-28 09:58 -0800

csiph-web