Python module vs library

Terry Jan Reedy tjreedy at udel.edu
Tue Apr 9 10:02:03 EDT 2013


On 4/9/2013 5:58 AM, k.lykourgos at 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.





More information about the Python-list mailing list