Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43172

Re: Python module vs library

From Terry Jan Reedy <tjreedy@udel.edu>
Subject Re: Python module vs library
Date 2013-04-09 10:02 -0400
References <03ee1902-ac8a-4d1f-9f2b-8e796fcccfe8@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.347.1365516135.3114.python-list@python.org> (permalink)

Show all headers | View raw


On 4/9/2013 5:58 AM, k.lykourgos@gmail.com wrote:
> Hi, what is the difference between python module and library ?

They are in different categories. A Python module is a namespace (a 
mapping of names to objects) created by running Python code as a main 
module or by import statements within Python code (or by executing 
import functions within a Python interpreter). A library in general is a 
collection of functions and classes used by multiple applications. A 
Python library is composed of Python modules, packages, and collections 
of such.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python module vs library k.lykourgos@gmail.com - 2013-04-09 02:58 -0700
  Re: Python module vs library Terry Jan Reedy <tjreedy@udel.edu> - 2013-04-09 10:02 -0400
  Re: Python module vs library Michael Torrie <torriem@gmail.com> - 2013-04-09 08:18 -0600
    Re: Python module vs library rusi <rustompmody@gmail.com> - 2013-04-09 07:29 -0700
      Re: Python module vs library Michael Torrie <torriem@gmail.com> - 2013-04-09 09:08 -0600

csiph-web