newbie Q: shortcuts for long module names?

Robin Munn rmunn at pobox.com
Tue Nov 12 01:12:09 EST 2002


Ian Bicking <ianb at colorstudy.com> wrote:
> On Mon, 2002-11-11 at 21:34, Erik Max Francis wrote:
>> Try
>> 
>> 	import this.is.a.long.module.name as name
>> 
>> or
>> 
>> 	import this.is.a.long.module.name as somethingElse
> 
> or
>   from this.is.a.deep.package import name

You could even do:

    from this.is.a.deep.package import name as someOtherName

if you want to.

-- 
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838    50FF 2478 CFFB 081A 8338  54F7 845D ACFD 6AFB 6838



More information about the Python-list mailing list