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


Groups > comp.lang.python > #20909

Re: Question about circular imports

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:verizon.net': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'am,': 0.12; 'circular': 0.15; 'identifier': 0.16; 'nail': 0.16; 'reedy': 0.16; 'wrote:': 0.18; 'subject:Question': 0.19; 'jan': 0.19; 'trying': 0.21; 'header:In-Reply-To:1': 0.22; 'import': 0.27; 'seem': 0.29; 'header:User-Agent:1': 0.33; 'header:X-Complaints- To:1': 0.34; 'all.': 0.34; 'to:addr:python-list': 0.35; 'received:org': 0.36; 'should': 0.38; 'to:addr:python.org': 0.40; 'follow': 0.61; 'choose': 0.64; 'frank': 0.64; 'battle': 0.84; 'otten': 0.84; 'recurring': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Question about circular imports
Date Sun, 26 Feb 2012 17:09:17 -0500
References <jid2a9$n21$1@dough.gmane.org> <jid424$vfp$1@dough.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <jid424$vfp$1@dough.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.183.1330294169.3037.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330294169 news.xs4all.nl 6860 [2001:888:2000:d::a6]:45325
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20909

Show key headers only | 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