Arrays

Gordon C gc284 at vif.com
Tue Nov 13 20:25:07 EST 2007


OK Steve, But why do we say "from array import array" and NOT  "from math 
import math"? Why the difference in syntax?
Gord

"Steven D'Aprano" <steve at REMOVE-THIS-cybersource.com.au> wrote in message 
news:13jk6af1vs5g89 at corp.supernews.com...
> On Tue, 13 Nov 2007 11:26:28 -0500, Gordon C wrote:
>
>> OK, thanks to all. The key statement is "from array import array" which
>> is not exactly intuitive!
>
>
> "The only intuitive interface is the nipple. After that, it's all
> learned."  --  Bruce Ediger on user interfaces.
>
> Once you've been using Python for a while, using import becomes as
> intuitive as a spoon. The only tricky part is knowing *which* module to
> import. But, honestly, are you surprised to learn that the array type is
> held in in the array module?
>
>
>
> -- 
> Steven. 





More information about the Python-list mailing list