Python module vs library

rusi rustompmody at gmail.com
Tue Apr 9 10:29:31 EDT 2013


On Apr 9, 7:18 pm, Michael Torrie <torr... at gmail.com> wrote:
> On 04/09/2013 03:58 AM, k.lykour... 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.

I guess Michael meant "...module or package."
Else the next question is going to be "Can you explain recursion in
python?" :-)


>
> 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