On 18 ago, 08:28, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> A package is a library, meant to be imported by some other code. Your main 
> script (or the testing code) is a program, it uses (i.e. imports) the library.

You are right that a module is a library and its main use is to be
imported from another module or program. But is a common practice in
Python to introduce testing code as part as the module itself. Even
there is an option “-m” to do that.
So (in my humbled opinion), that is one error Python must fix.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to