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


Groups > comp.lang.python > #20909 > unrolled thread

Re: Question about circular imports

Started byTerry Reedy <tjreedy@udel.edu>
First post2012-02-26 17:09 -0500
Last post2012-02-26 17:09 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#20909 — Re: Question about circular imports

FromTerry Reedy <tjreedy@udel.edu>
Date2012-02-26 17:09 -0500
SubjectRe: Question about circular imports
Message-ID<mailman.183.1330294169.3037.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web