[Python-Dev] shal we redefine "module" and "package"?

Nick Coghlan ncoghlan at gmail.com
Thu May 1 01:08:25 CEST 2008


zooko wrote:
> Folks:
> 
> Here's an experiment you can perform.  Round up a Python programmer and 
> ask him the following three questions:
> 
> Q1.  You type "import foo" and it works.  What kind of thing is foo?

foo is a package or a module. Not enough information is provide here to 
say which.

> Q2.  You go to the Python package index and download something named 
> "bar-1.0.0.tar.gz".  What kind of thing is bar?

bar is a package, a module, or a collection of a number of these things. 
Again, not enough information is provided in the question to say which 
is actually the case.

Cheers,
Nick.

P.S. People, including programmers, are often sloppy with terminology. 
This is not a new problem.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list