Python module vs library

Michael Torrie torriem at gmail.com
Tue Apr 9 10:18:11 EDT 2013


On 04/09/2013 03:58 AM, k.lykourgos at gmail.com wrote:
> Hi, what is the difference between python module and library ?

"library" doesn't really mean anything specifically to Python's
interpreter.  It's not a valid keyword and is only used by humans to
describe the abstract function and nature of a bunch of arbitrary Python
code, usually in a module or library.

Python does have a concept of modules and packages.  Both serve the same
purpose, which is to bring together a collection of attributes into a
namespace that can be imported into the current namespace (IE a library!).



More information about the Python-list mailing list