Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'categories.': 0.09; 'namespace': 0.09; 'objects)': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'statements': 0.09; 'subject:module': 0.09; 'python': 0.11; 'collections': 0.16; 'modules,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'library': 0.18; 'module': 0.19; 'import': 0.22; 'header:User-Agent:1': 0.23; '(or': 0.24; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'code': 0.31; 'such.': 0.31; 'running': 0.33; 'classes': 0.35; 'created': 0.35; 'executing': 0.36; 'hi,': 0.36; 'mapping': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'received:173': 0.61; 'email addr:gmail.com': 0.63; 'different': 0.65; 'within': 0.65; 'between': 0.67; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Jan Reedy Subject: Re: Python module vs library Date: Tue, 09 Apr 2013 10:02:03 -0400 References: <03ee1902-ac8a-4d1f-9f2b-8e796fcccfe8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <03ee1902-ac8a-4d1f-9f2b-8e796fcccfe8@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365516135 news.xs4all.nl 6978 [2001:888:2000:d::a6]:34466 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43172 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.