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


Groups > comp.lang.python > #20909

Re: Question about circular imports

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Question about circular imports
Date 2012-02-26 17:09 -0500
References <jid2a9$n21$1@dough.gmane.org> <jid424$vfp$1@dough.gmane.org>
Newsgroups comp.lang.python
Message-ID <mailman.183.1330294169.3037.python-list@python.org> (permalink)

Show all headers | View raw


On 2/26/2012 6:12 AM, Peter Otten wrote:
> Frank Millman wrote:
>
>> I seem to have a recurring battle with circular imports, and I am trying
>> to nail it once and for all.
...
> This should be
>
> import sound.formats.wavread

To avoid the tedious reference, follow this with
read = sound.formats.wavread # choose the identifier you prefer

-- 
Terry Jan Reedy

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


Thread

Re: Question about circular imports Terry Reedy <tjreedy@udel.edu> - 2012-02-26 17:09 -0500

csiph-web