Question about circular imports

Terry Reedy tjreedy at udel.edu
Sun Feb 26 17:09:17 EST 2012


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




More information about the Python-list mailing list